Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crowphp/crow
Fast, unopinionated, minimalist web framework for PHP.
https://github.com/crowphp/crow
crowphp framework php server swoole
Last synced: 26 days ago
JSON representation
Fast, unopinionated, minimalist web framework for PHP.
- Host: GitHub
- URL: https://github.com/crowphp/crow
- Owner: crowphp
- License: mit
- Created: 2020-12-22T13:17:03.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T15:40:51.000Z (about 2 years ago)
- Last Synced: 2024-11-18T07:49:18.661Z (about 1 month ago)
- Topics: crowphp, framework, php, server, swoole
- Language: PHP
- Homepage: https://crowphp.github.io/crow-web/
- Size: 525 KB
- Stars: 49
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Fast un-opinionated minimalist web framework and server for PHP built on top of Async PHP server (SwoolePHP).
CrowPHP lets you build real microservices in PHP without the use of PHP-FPM/Nginx or Apache.![Build Status](https://github.com/crowphp/crow/workflows/build/badge.svg)
![License](https://img.shields.io/github/license/crowphp/crow)
![Coverage](https://img.shields.io/endpoint?url=https://badger.crowphp.com/coverage/0.x)### Installation
#### Requirements
1. PHP >8.0
2. Swoole PHP extension```
$ pecl install swoole
```Installation of CrowPHP via composer, the following command will install the framework and all of its dependencies with it.
```
composer install crowphp/crow
```### Hello world microservice using CrowPHP
```php
get('/', function (RequestInterface $request, ResponseInterface $response) {
$response->getBody()->write('Hello World');
return $response;
});$app->withRouter($router);
$app->listen(5005);
```
You may quickly test your newly built service as follows:
```bash
$ php index.php
```
Going to http://localhost:5005 will now display "Hello World".For more information on how to configure your web server, see the Documentation.
## Tests
To execute the test suite, you'll need to install all development dependencies.
```
$ git clone https://github.com/crowphp/crow
$ composer install
$ composer test
```
## ContributingPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Learn More
Learn more at these links:
- [Website](https://crowphp.github.io/crow-web/)## Security
If you discover security related issues, please email [email protected] or use the issue tracker.## License
The Crow Framework is licensed under the MIT license. See [License File](LICENSE.md) for more information.