guanguans / coole
Coole 是一个基于开源组件构建的 PHP 微框架。 - Coole 是一个基于开源组件构建的 PHP 微框架。
v2.0.0-rc1
2021-11-30 09:54 UTC
Requires
- php: >7.3
- filp/whoops: ^2.14
- illuminate/collections: ^8.70
- illuminate/config: ^8.70
- illuminate/container: ^8.70
- illuminate/database: ^8.70
- illuminate/events: ^8.70
- illuminate/macroable: ^8.70
- illuminate/pagination: ^8.70
- illuminate/pipeline: ^8.70
- league/flysystem: ^2.2
- monolog/monolog: ^2.3
- nette/robot-loader: ^3.4
- nette/utils: ^3.2
- opis/closure: ^3.6
- php-di/invoker: ^2.0
- sebastiaanluca/php-pipe-operator: ^3.0 || ^4.0
- spatie/async: ^1.5
- spatie/blink: ^1.1
- spatie/once: ^2.2 || ^3.0
- spatie/url-signer: ^1.2
- symfony/browser-kit: ^5.3
- symfony/cache: ^5.3
- symfony/console: ^5.3
- symfony/error-handler: ^5.3
- symfony/event-dispatcher: ^5.3
- symfony/expression-language: ^5.3
- symfony/filesystem: ^5.3
- symfony/finder: ^5.3
- symfony/http-client: ^5.3
- symfony/http-foundation: ^5.3
- symfony/http-kernel: ^5.3
- symfony/lock: ^5.3
- symfony/mailer: ^5.3
- symfony/messenger: ^5.3
- symfony/notifier: ^5.3
- symfony/options-resolver: ^5.3
- symfony/password-hasher: ^5.3
- symfony/process: ^5.3
- symfony/rate-limiter: ^5.3
- symfony/routing: ^5.3
- symfony/security-core: ^5.3
- symfony/security-csrf: ^5.3
- symfony/security-guard: ^5.3
- symfony/security-http: ^5.3
- symfony/semaphore: ^5.3
- symfony/serializer: ^5.3
- symfony/stopwatch: ^5.3
- symfony/translation: ^5.3
- symfony/uid: ^5.3
- symfony/validator: ^5.3
- symfony/var-exporter: ^5.3
- twig/twig: ^3.3
- vlucas/phpdotenv: ^5.3
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.8
- code-lts/doctum: ^5.4
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.3
- nyholm/nsa: ^1.3
- overtrue/phplint: ^2.4 || ^3.0 || ^4.0
- phpunit/phpunit: ^8.0 || ^9.0
- symplify/monorepo-builder: ^9.4
- vimeo/psalm: ^4.9
Replaces
This package is auto-updated.
Last update: 2024-09-05 22:12:07 UTC
README
Coole 是一个基于开源组件构建的 PHP 框架。 - Coole 是一个基于开源组件构建的 PHP 框架。
文档
生命周期
需求
- PHP >= 7.3
安装
$ composer require guanguans/coole -vvv
快速开始
<?php use Coole\Foundation\App; use Coole\Routing\Facades\Router; use Symfony\Component\HttpFoundation\Request; require __DIR__.'/vendor/autoload.php'; // 1. Create App. $app = new App(); $app['debug'] = true; // 2. Add route with closure middleware. Router::get('/', function (){ return 'This is the Coole framework.'; })->setMiddleware(function (Request $request, Closure $next){ $response = $next($request); $response->headers->set('X-Coole-Version', App::version()); return $response; }); // 3. Run service. $app->run();
测试
$ composer test
变更日志
请参阅CHANGELOG以获取有关最近更改的更多信息。
贡献
请参阅CONTRIBUTING以获取详细信息。
安全漏洞
请审查我们的安全策略,了解如何报告安全漏洞。
致谢
感谢

许可证
MIT 许可证 (MIT)。请参阅许可证文件以获取更多信息。