somnambulist/laravel-doctrine-project
Composer 安装命令:
composer create-project somnambulist/laravel-doctrine-project
包简介
Laravel 5.3 with Doctrine, Twig and other Goodies
关键字:
README 文档
README
A kick-starter project that pre-configures Doctrine, Twig, behaviours and some other stuff because bootstrapping projects with the same requirements is tedious.
Use this to kick-start a Doctrine based Laravel app.
- 1.X Laravel 5.2.* based project
- 2.X Laravel 5.3.* based project
- 3.X Laravel 5.4.* based project
Included are the following:
- Barryvdh Debugbar
- Barryvdh IdeHelper
- Beberlei Assert
- Doctrine
- Doctrine Behaviours
- Doctrine Domain Events
- Doctrine Entity Audit
- Doctrine Entity Validation
- Eloquent Enumerations
- Environment Loader
- HTML Builder
- Homestead
- Twig
- Twig Extensions
Entities
The default namespace is "App".
The following entities and matching repositories are provided, together with YAML mapping files, pre-configured:
- Address
- Country
- Organization
- Permission
- Role
- User
Each repository has an interface that is pre-mapped to the interface in the repository config.
Domain Events
The User and Organization entities support Domain Events:
- User Events
- UserCreated
- UserLoggedIn
- AddressAddedToEntity
- AddressRemovedFromEntity
- AuthenticationCredentialsChanged
- GrantedOrganizationToUser
- GrantedPermissionToUser
- GrantedRoleToUser
- RevokedOrganizationFromUser
- RevokedPermissionFromUser
- RevokedRoleFromUser
- Organization Events
- OrganizationCreated
- AddressAddedToEntity
- AddressRemovedFromEntity
Getting Started
composer create-project somnambulist/laravel-doctrine-project my-project- setup your database settings / configure the other options
./artisan doctrine:schema:validate./artisan doctrine:schema:create./artisan db:seed./artisan serve- to use Vagrant, update the Homestead.yaml with the project location
vagrant up- then use the artisan commands as above
The standard Laravel welcome app + authentication have been setup and converted to Twig.
Additional Helper Scripts
cache_build.sh- creates caches for routes, container etc.cache_clean.sh- clears all caches including Doctrine query cachesvagrant_db_reset.sh- drops and rebuilds the database (for development only)vagrant_refresh.sh- fully refreshes all applications files including composer update and npm install
somnambulist/laravel-doctrine-project 适用场景与选型建议
somnambulist/laravel-doctrine-project 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 42 次下载、GitHub Stars 达 4, 最近一次更新时间为 2016 年 08 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「twig」 「doctrine」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 somnambulist/laravel-doctrine-project 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 somnambulist/laravel-doctrine-project 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 somnambulist/laravel-doctrine-project 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Shoot aims to make providing data to your templates more manageable
This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.
A Twig extension to insert css as inline styles with a tag
Caching and compression for Twig assets (JavaScript and CSS).
Twig extensions for Tracy Debugger
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-07