All Projects → crowphp → crow

crowphp / crow

Licence: MIT license
Fast, unopinionated, minimalist web framework for PHP.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to crow

Connection Pool
A common connection pool based on Swoole is usually used as a database connection pool.
Stars: ✭ 164 (+248.94%)
Mutual labels:  swoole
Mega Wechat
基于Swoole的微信发送模板消息队列服务
Stars: ✭ 206 (+338.3%)
Mutual labels:  swoole
docker-swoole-webapp
Simple Docker-image to build your applications based on Async PHP extensions.
Stars: ✭ 26 (-44.68%)
Mutual labels:  swoole
Php Msf Docs
PHP微服务框架开发手册,即Micro Service Framework For PHP Develop Manual
Stars: ✭ 185 (+293.62%)
Mutual labels:  swoole
Yurunhttp
YurunHttp 是开源的 PHP HTTP 客户端,支持链式操作,简单易用。完美支持Curl、Swoole 协程。QQ群:17916227
Stars: ✭ 197 (+319.15%)
Mutual labels:  swoole
Zapi
基于swoole的异步轻量级api框架,内部封装全套mysql、redis、mongo、memcached异步客户端,可以轻松start、reload、stop,加入数据库的查询模块,框架已经封装好近乎同步写法,底层异步调用。现已支持异步mysql、异步redis、异步http请求.
Stars: ✭ 245 (+421.28%)
Mutual labels:  swoole
Yii2 Swoole
make yii2 project runing on swoole
Stars: ✭ 161 (+242.55%)
Mutual labels:  swoole
swoole-ide-helper-phar
Swoole IDE 自动补全,PHAR 包。
Stars: ✭ 14 (-70.21%)
Mutual labels:  swoole
Swoole Bundle
Symfony Swoole Bundle
Stars: ✭ 201 (+327.66%)
Mutual labels:  swoole
Phpdhtspider
php实现的dht爬虫
Stars: ✭ 248 (+427.66%)
Mutual labels:  swoole
Webim
PHP + Swoole 实现的简单聊天室
Stars: ✭ 186 (+295.74%)
Mutual labels:  swoole
Tsf
coroutine and Swoole based php server framework in tencent
Stars: ✭ 2,204 (+4589.36%)
Mutual labels:  swoole
Hyperf Admin
hyperf-admin 是基于 hyperf + vue 的配置化后台开发工具
Stars: ✭ 244 (+419.15%)
Mutual labels:  swoole
Phwoolcon
Phalcon + Swoole
Stars: ✭ 173 (+268.09%)
Mutual labels:  swoole
dwoole
⚙️ Docker image for Swoole apps with Composer, auto-restart on development and a production-ready version.
Stars: ✭ 32 (-31.91%)
Mutual labels:  swoole
Hyperf Skeleton
🛠 A skeleton of Hyperf framework that provided by official team
Stars: ✭ 162 (+244.68%)
Mutual labels:  swoole
Docker Files
Collection of prooph docker files
Stars: ✭ 232 (+393.62%)
Mutual labels:  swoole
LightMoon
A framework based swoole
Stars: ✭ 17 (-63.83%)
Mutual labels:  swoole
docker-images
本仓库为自定义及收藏的一些镜像,方便使用。包含PHP5、PHP7开发环境等镜像。
Stars: ✭ 18 (-61.7%)
Mutual labels:  swoole
W7 Rangine Empty
软擎是基于 Php 7.2+ 和 Swoole 4.4+ 的高性能、简单易用的开发框架。支持同时在 Swoole Server 和 php-fpm 两种模式下运行。内置了 Http (Swoole, Fpm),Tcp,WebSocket,Process,Crontab服务。集成了大量成熟的组件,可以用于构建高性能的Web系统、API、中间件、基础服务等等。
Stars: ✭ 246 (+423.4%)
Mutual labels:  swoole

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 License Coverage

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
require 'vendor/autoload.php';

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface as RequestInterface;
use Crow\Http\Server\Factory as CrowServer;

$app = CrowServer::create(CrowServer::SWOOLE_SERVER);
$router = Crow\Router\Factory::make();

$router->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:

$ 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

Contributing

Please see CONTRIBUTING for details.

Learn More

Learn more at these links:

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 for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].