11 Commits

Author SHA1 Message Date
Matthieu Napoli
cb451435e5 Merge pull request #39 from okuramasafumi/patch-1
Replace PhantomJS with React Native
2018-07-25 23:14:23 +02:00
Okura Masafumi
31f21a66b3 Replace PhantomJS with React Native
PhantomJS some end of life so we should replace it with something else.
I thought React Native is popular enough.
2018-07-25 18:14:48 +09:00
Matthieu Napoli
f466d47cb5 Add link to https://prettyci.com 2018-07-16 22:52:27 +02:00
Matthieu Napoli
ba1385cf18 Merge pull request #38 from styfle/patch-1
Change google fonts to https
2018-07-09 19:15:29 +02:00
Steven
221ad8514d Change google fonts to https
This changes http://fonts.googleapis.com to https://fonts.googleapis.com
2018-07-09 13:12:29 -04:00
Matthieu Napoli
6c17e62f24 Merge pull request #37 from TravisEz13/Add_ignored_tags
Add question, cleanup, discussion, and meta as ignored tags
2018-04-16 17:38:54 +02:00
Travis Plunk
2b163079b1 Add question, cleanup, discussion, and meta as ignored tags 2018-04-13 18:43:39 -07:00
Matthieu Napoli
dc97daa943 Merge pull request #36 from joelhandwell/patch-1
Dogfooding IsItMaintained
2017-08-30 17:44:09 +02:00
Joel Handwell
15c7fe3005 Dogfooding IsItMaintained
Eating your own dog food https://en.wikipedia.org/wiki/Eating_your_own_dog_food can be a good practice to show quality of this repo.
2017-08-30 10:55:56 -04:00
Matthieu Napoli
141631b023 Update HomeController.php 2016-12-05 19:24:48 +01:00
Matthieu Napoli
706f916c35 Update README.md
See 9c71c18c75
2016-09-26 15:14:06 +02:00
10 changed files with 210 additions and 1136 deletions

View File

@@ -1,6 +1,8 @@
# Is It Maintained?
Monitoring open source projects activity.
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mnapoli/IsItMaintained.svg)](http://isitmaintained.com/project/mnapoli/IsItMaintained "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/mnapoli/IsItMaintained.svg)](http://isitmaintained.com/project/mnapoli/IsItMaintained "Percentage of issues still open")
![](web/img/dude.png)
@@ -46,3 +48,7 @@ API token (https://github.com/settings/applications) and set it in `parameters.p
- PHP 7.0
- [Puli](http://puli.io) installed
- GD extension
## Feature requests
Issues are disabled for now on this repository because they were filling up with feature requests. If you want a feature to be added, pull requests are welcome.

View File

@@ -1,23 +1,37 @@
#!/usr/bin/env php
<?php
use Maintained\Application\Application;
use DI\ContainerBuilder;
use Maintained\Application\Command\ClearCacheCommand;
use Maintained\Application\Command\ShowStatisticsCommand;
use Maintained\Application\Command\UpdateStatisticsCommand;
use Maintained\Application\Command\WarmupCacheCommand;
use Symfony\Component\Console\Application;
require_once __DIR__ . '/../.puli/GeneratedPuliFactory.php';
require_once __DIR__ . '/../vendor/autoload.php';
$app = new Application;
$modules = [
'error-handler',
'twig',
'app',
];
/** @var \Stratify\Framework\Application $app */
$app = new class([], $modules) extends \Stratify\Framework\Application
{
protected function createContainerBuilder(array $modules) : ContainerBuilder
{
$containerBuilder = parent::createContainerBuilder($modules);
$containerBuilder->useAnnotations(true);
return $containerBuilder;
}
};
$container = $app->getContainer();
$cli = $app->cli();
$application = new Application('isitmaintained');
$cli->add($container->get(ClearCacheCommand::class));
$cli->add($container->get(WarmupCacheCommand::class));
$cli->add($container->get(ShowStatisticsCommand::class));
$cli->add($container->get(UpdateStatisticsCommand::class));
$application->add($container->get(ClearCacheCommand::class));
$application->add($container->get(WarmupCacheCommand::class));
$application->add($container->get(ShowStatisticsCommand::class));
$application->add($container->get(UpdateStatisticsCommand::class));
$cli->run();
$application->run();

View File

@@ -19,7 +19,7 @@
"mnapoli/blackbox": "~0.4.0",
"psr/log": "~1.0",
"monolog/monolog": "~1.10",
"stratify/framework": "~0.3.1",
"stratify/framework": "~0.1.2",
"stratify/twig-module": "~0.1.1",
"doctrine/annotations": "^1.2"
},

1162
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,10 +16,6 @@
"install-path": "vendor/badges/poser",
"installer": "composer"
},
"coduo/phpspec-data-provider-extension": {
"install-path": "vendor/coduo/phpspec-data-provider-extension",
"installer": "composer"
},
"container-interop/container-interop": {
"install-path": "vendor/container-interop/container-interop",
"installer": "composer"
@@ -32,10 +28,6 @@
"install-path": "vendor/doctrine/cache",
"installer": "composer"
},
"doctrine/instantiator": {
"install-path": "vendor/doctrine/instantiator",
"installer": "composer"
},
"doctrine/lexer": {
"install-path": "vendor/doctrine/lexer",
"installer": "composer"
@@ -60,26 +52,14 @@
"install-path": "vendor/mnapoli/blackbox",
"installer": "composer"
},
"mnapoli/silly": {
"install-path": "vendor/mnapoli/silly",
"installer": "composer"
},
"monolog/monolog": {
"install-path": "vendor/monolog/monolog",
"installer": "composer"
},
"paragonie/random_compat": {
"install-path": "vendor/paragonie/random_compat",
"installer": "composer"
},
"php-di/invoker": {
"install-path": "vendor/php-di/invoker",
"installer": "composer"
},
"php-di/kernel": {
"install-path": "vendor/php-di/kernel",
"installer": "composer"
},
"php-di/php-di": {
"install-path": "vendor/php-di/php-di",
"installer": "composer"
@@ -88,30 +68,6 @@
"install-path": "vendor/php-di/phpdoc-reader",
"installer": "composer"
},
"phpdocumentor/reflection-common": {
"install-path": "vendor/phpdocumentor/reflection-common",
"installer": "composer"
},
"phpdocumentor/reflection-docblock": {
"install-path": "vendor/phpdocumentor/reflection-docblock",
"installer": "composer"
},
"phpdocumentor/type-resolver": {
"install-path": "vendor/phpdocumentor/type-resolver",
"installer": "composer"
},
"phpspec/php-diff": {
"install-path": "vendor/phpspec/php-diff",
"installer": "composer"
},
"phpspec/phpspec": {
"install-path": "vendor/phpspec/phpspec",
"installer": "composer"
},
"phpspec/prophecy": {
"install-path": "vendor/phpspec/prophecy",
"installer": "composer"
},
"psr/http-message": {
"install-path": "vendor/psr/http-message",
"installer": "composer"
@@ -144,22 +100,6 @@
"install-path": "vendor/ramsey/uuid",
"installer": "composer"
},
"sebastian/comparator": {
"install-path": "vendor/sebastian/comparator",
"installer": "composer"
},
"sebastian/diff": {
"install-path": "vendor/sebastian/diff",
"installer": "composer"
},
"sebastian/exporter": {
"install-path": "vendor/sebastian/exporter",
"installer": "composer"
},
"sebastian/recursion-context": {
"install-path": "vendor/sebastian/recursion-context",
"installer": "composer"
},
"seld/jsonlint": {
"install-path": "vendor/seld/jsonlint",
"installer": "composer"
@@ -208,10 +148,6 @@
"install-path": "vendor/symfony/process",
"installer": "composer"
},
"symfony/yaml": {
"install-path": "vendor/symfony/yaml",
"installer": "composer"
},
"twig/twig": {
"install-path": "vendor/twig/twig",
"installer": "composer"

View File

@@ -17,8 +17,8 @@
<link href="/css/theme.css" rel="stylesheet">
<link href="/vendor/fontawesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<script src="/vendor/jquery/dist/jquery.min.js"></script>
@@ -76,10 +76,9 @@
-
<a href="http://mnapoli.fr">Matthieu Napoli</a>
-
<a href="https://github.com/mnapoli/Maintained">
<i class="fa fa-github"></i>
GitHub
</a>
<a href="https://github.com/mnapoli/Maintained"><i class="fa fa-github"></i>GitHub</a>
-
Supported by <a href="https://prettyci.com/" title="Continuous integration for PHP coding standards">PrettyCI</a>
-
Theme by <a href="http://startbootstrap.com/template-overviews/freelancer/">
Start Bootstrap

View File

@@ -1,28 +0,0 @@
<?php
declare(strict_types = 1);
namespace Maintained\Application;
use DI\ContainerBuilder;
/**
* @author Matthieu Napoli <matthieu@mnapoli.fr>
*/
class Application extends \Stratify\Framework\Application
{
public function __construct()
{
$modules = [
'error-handler',
'twig',
'app',
];
parent::__construct($modules);
}
protected function configureContainerBuilder(ContainerBuilder $containerBuilder)
{
$containerBuilder->useAnnotations(true);
}
}

View File

@@ -35,12 +35,12 @@ class HomeController
'pallets/flask' => 'Flask',
'expressjs/express' => 'Express',
'symfony/symfony' => 'Symfony',
'zendframework/zf2' => 'Zend Framework 2',
'zendframework/zendframework' => 'Zend Framework',
'laravel/framework' => 'Laravel',
'angular/angular.js' => 'AngularJS',
'meteor/meteor' => 'Meteor',
'facebook/react' => 'React',
'ariya/phantomjs' => 'PhantomJS',
'facebook/react-native' => 'React Native',
'gulpjs/gulp' => 'Gulp',
'robbyrussell/oh-my-zsh' => 'Oh My Zsh',
];

View File

@@ -36,6 +36,10 @@ class StatisticsComputer implements StatisticsProvider
'wip',
'rfc',
'wishlist',
'question',
'cleanup',
'discussion',
'meta',
];
/**
@@ -50,6 +54,10 @@ class StatisticsComputer implements StatisticsProvider
'.*test.*',
'.*suggestion.*',
'.*refactoring.*',
'.*question.*',
'.*cleanup.*',
'.*discussion.*',
'.*meta.*',
'(.*[\s\.-])?wip',
'(.*[\s\.-])?rfc',
'(.*[\s\.-])?poc',

View File

@@ -1,5 +1,6 @@
<?php
use DI\ContainerBuilder;
use Maintained\Application\Controller\BadgeController;
use Maintained\Application\Controller\HomeController;
use Maintained\Application\Controller\ProjectCheckController;
@@ -18,17 +19,22 @@ if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . preg_replace('#(\?.*)$
return false;
}
require_once __DIR__ . '/../.puli/GeneratedPuliFactory.php';
require __DIR__ . '/../vendor/autoload.php';
$modules = [
'error-handler',
'twig',
'app',
];
$http = pipe([
ErrorHandlerMiddleware::class,
MaintenanceMiddleware::class,
router([
'/' => route(HomeController::class, 'home'),
'/check/{user}/{repository}' => route(ProjectCheckController::class, 'check-project'),
'/project/{user}/{repository}' => route(ProjectController::class, 'project'),
'/' => route(HomeController::class, 'home'),
'/check/{user}/{repository}' => route(ProjectCheckController::class, 'check-project'),
'/project/{user}/{repository}' => route(ProjectController::class, 'project'),
'/badge/{badge}/{user}/{repository}.svg' => route(BadgeController::class, 'badge'),
]),
@@ -36,6 +42,17 @@ $http = pipe([
Error404Middleware::class,
]);
$app = new Application;
/** @var Application $app */
$app = new class($http, $modules) extends Application
{
protected function createContainerBuilder(array $modules) : ContainerBuilder
{
$containerBuilder = parent::createContainerBuilder($modules);
$containerBuilder->useAnnotations(true);
return $containerBuilder;
}
};
ErrorHandler::register($app->getContainer()->get(LoggerInterface::class));
$app->http($http)->run();
$app->runHttp();