forked from swooletw/laravel-swoole
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from swooletw/master
resync
- Loading branch information
Showing
131 changed files
with
6,003 additions
and
1,564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.DS_Store | ||
phpunit.xml | ||
composer.lock | ||
.scannerwork | ||
|
||
# Folders | ||
vendor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
build: | ||
environment: | ||
php: 7.2 | ||
|
||
filter: | ||
excluded_paths: | ||
- "tests/*" | ||
- "routes/*" | ||
- "config/*" | ||
- "stubs/*" | ||
dependency_paths: | ||
- "vendor/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,73 @@ | ||
{ | ||
"name": "swooletw/laravel-swoole", | ||
"description": "High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.", | ||
"keywords": ["swoole", "laravel", "lumen", "performance", "http", "server"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Albert Chen", | ||
"email": "albert@unisharp.com" | ||
}, | ||
{ | ||
"name": "Huang Yi", | ||
"email": "coodeer@163.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.1", | ||
"illuminate/console": "~5.1", | ||
"illuminate/contracts": "~5.1", | ||
"illuminate/http": "~5.1", | ||
"illuminate/support": "~5.1", | ||
"predis/predis": "^1.1" | ||
}, | ||
"require-dev": { | ||
"laravel/lumen-framework": "~5.1", | ||
"phpunit/phpunit": "^6.1", | ||
"phpunit/php-code-coverage": "^5.2", | ||
"satooshi/php-coveralls": "^1.0", | ||
"mockery/mockery": "~1.0", | ||
"codedungeon/phpunit-result-printer": "^0.14.0", | ||
"php-mock/php-mock": "^2.0" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"src/Server/helpers.php" | ||
], | ||
"psr-4": { | ||
"SwooleTW\\Http\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"SwooleTW\\Http\\Tests\\": "tests", | ||
"SwooleTW\\Http\\Tests\\Fixtures\\Laravel\\App\\": "tests/fixtures/laravel/app" | ||
} | ||
"name": "swooletw/laravel-swoole", | ||
"description": "High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.", | ||
"keywords": [ | ||
"swoole", | ||
"laravel", | ||
"lumen", | ||
"performance", | ||
"http", | ||
"server" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Albert Chen", | ||
"email": "albert@unisharp.com" | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"SwooleTW\\Http\\LaravelServiceProvider" | ||
], | ||
"aliases": { | ||
"Server": "SwooleTW\\Http\\Server\\Facades\\Server", | ||
"Table": "SwooleTW\\Http\\Server\\Facades\\Table", | ||
"Room": "SwooleTW\\Http\\Websocket\\Facades\\Room", | ||
"Websocket": "SwooleTW\\Http\\Websocket\\Facades\\Websocket" | ||
} | ||
} | ||
{ | ||
"name": "Huang Yi", | ||
"email": "coodeer@163.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.2", | ||
"illuminate/console": "~5.4|~6.0|~7.0|~8.0", | ||
"illuminate/contracts": "~5.4|~6.0|~7.0|~8.0", | ||
"illuminate/http": "~5.4|~6.0|~7.0|~8.0", | ||
"illuminate/support": "~5.4|~6.0|~7.0|~8.0", | ||
"predis/predis": "^1.1" | ||
}, | ||
"require-dev": { | ||
"laravel/lumen-framework": "~5.4|~6.0|~7.0|~8.0", | ||
"phpunit/phpunit": "^7.5", | ||
"phpunit/php-code-coverage": "^6.1", | ||
"php-coveralls/php-coveralls": "^2.1", | ||
"mockery/mockery": "~1.0", | ||
"codedungeon/phpunit-result-printer": "^0.14.0", | ||
"php-mock/php-mock": "^2.0", | ||
"swoole/ide-helper": "@dev" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"src/Server/helpers.php" | ||
], | ||
"psr-4": { | ||
"SwooleTW\\Http\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"SwooleTW\\Http\\Tests\\": "tests", | ||
"SwooleTW\\Http\\Tests\\Fixtures\\Laravel\\App\\": "tests/fixtures/laravel/app" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"SwooleTW\\Http\\LaravelServiceProvider" | ||
], | ||
"aliases": { | ||
"Server": "SwooleTW\\Http\\Server\\Facades\\Server", | ||
"Table": "SwooleTW\\Http\\Server\\Facades\\Table", | ||
"Room": "SwooleTW\\Http\\Websocket\\Facades\\Room", | ||
"Websocket": "SwooleTW\\Http\\Websocket\\Facades\\Websocket" | ||
} | ||
} | ||
}, | ||
"scripts": { | ||
"post-autoload-dump": [ | ||
"@php copy_versioned_files.php" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
require __DIR__.'/vendor/autoload.php'; | ||
|
||
use SwooleTW\Http\Helpers\FW; | ||
use SwooleTW\Http\Task\QueueFactory; | ||
use SwooleTW\Http\Coroutine\Connectors\ConnectorFactory; | ||
|
||
try { | ||
$framework = ucfirst(FW::current()); | ||
$version = FW::version(); | ||
} catch (Throwable $e) { | ||
echo "No files were generated.\n"; | ||
die; | ||
} | ||
|
||
$color = "\033[0;32m"; | ||
$noColor = "\033[0m"; | ||
$stubs = []; | ||
|
||
/* Copy queue class */ | ||
$stub = QueueFactory::stub($version); | ||
QueueFactory::copy($stub, true); | ||
$stubs[] = $stub; | ||
|
||
/* Copy connector class */ | ||
$stub = ConnectorFactory::stub($version); | ||
ConnectorFactory::copy($stub, true); | ||
$stubs[] = $stub; | ||
|
||
foreach ($stubs as $stub) { | ||
echo "{$color}{$framework}{$noColor}: {$color}{$version}{$noColor}. Successfully copied stub: {$color}{$stub}{$noColor}\n"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
|
||
|
||
use Illuminate\Support\Facades\Route; | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.