guanguans / coole
Coole is a PHP micro-framework built on open source components. - Coole 是一个基于开源组件构建的 PHP 微框架。
Fund package maintenance!
Patreon
www.guanguans.cn/images/wechat.jpeg
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-11-27 09:48:51 UTC
README
Coole is a PHP framework built on open source components. - Coole 是一个基于开源组件构建的 PHP 框架。
Documentation
Life cycle
Requirement
- PHP >= 7.3
Installation
$ composer require guanguans/coole -vvv
Quick start
<?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();
Testing
$ composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
Thanks
License
The MIT License (MIT). Please see License File for more information.