dan-powell/jellies
Composer 安装命令:
composer require dan-powell/jellies
包简介
A jellyrific MMO game for Laravel 5
README 文档
README
A browser-based MMO with jellies & sundry.
WIP
This software is pre-alpha, don't bother to use it just yet...
Install
Install using composer
composer require dan-powell/jellies
Add service providers to config/app.php
// Jellies Service Provider
DanPowell\Jellies\JelliesServiceProvider::class,
// Third Party
Collective\Html\HtmlServiceProvider::class,
Krucas\Notification\NotificationServiceProvider::class,
Add aliases to config/app.php
// Jellies
// Third Party
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Notification' => Krucas\Notification\Facades\Notification::class,
Add middleware to app/Http/Kernel.php
protected $middlewareGroups = [
'web' => [
...
\Illuminate\Session\Middleware\StartSession::class,
\Krucas\Notification\Middleware\NotificationMiddleware::class,
Kernel middleware array (must be placed after 'Illuminate\Session\Middleware\StartSession' middleware)
Publish assets
php artisan vendor:publish --tag='database'
Run migrations
php artisan migrate
Change default auth model in config/auth.php
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => DanPowell\Jellies\Models\User::class,
],
Add command classes to app/Console/Kernel.php
use DanPowell\Jellies\Console\Commands\Incursion\IncursionProcessEncounters;
use DanPowell\Jellies\Console\Commands\User\UserAddAction;
use DanPowell\Jellies\Console\Commands\User\UserAttack;
class Kernel extends ConsoleKernel
{
protected $commands = [
IncursionProcessEncounters::class,
UserAddAction::class,
UserAttack::class
];
Add scheduled tasks to app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('incursion:encounters --queue')->everyFiveMinutes();
$schedule->command('user:actions --queue')->hourly();
}
Update
publish assets
php artisan vendor:publish --tag='database' --force
migrations
php artisan migrate
Seeding
publish database
php artisan vendor:publish --tag='database' --force
Add seeder to database/seeds/DatabaseSeeder.php
$this->call('JelliesSeeder');
Seed
composer dump-autoload
php artisan db:seed
Testing
Publish tests
php artisan vendor:publish --tag='tests' --force
Add testing database to config/database.php
'testing' => [
...
'database' => 'testing',
...
],
Add modules to test/functional.suite.yml
modules:
enabled:
- Laravel5:
environment_file: .env.testing
Create .env.testing
APP_ENV=testing
APP_DEBUG=true
APP_KEY=
BASE_URL=
DB_HOST=localhost
DB_DATABASE=testing
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
Migrate
php artisan migrate --database=testing
Run tests
php ./vendor/bin/codecept run
dan-powell/jellies 适用场景与选型建议
dan-powell/jellies 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 48 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 04 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「game」 「mmo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dan-powell/jellies 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dan-powell/jellies 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dan-powell/jellies 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Albion Online API Client
Simple albion service status client
Albion Online Data Project PHP Client
Alfabank REST API integration
腾讯小游戏ThinkPHP5.0.*版
the first PHP project
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-27