dhandarbeit-tk/laravel-boilerplate-platform
Composer 安装命令:
composer create-project dhandarbeit-tk/laravel-boilerplate-platform
包简介
The Laravel Framework.
关键字:
README 文档
README
Provides useful helper functions and class structure for core functionality of laravel/laravel.
Built to be customizable.
Installation
Create project
composer create-project dhandarbeit-tk/laravel-boilerplate-platform
Preinstalled packages
- HTML and Form Builder laravelcollective/html
- doctrine/dbal
- Laravel IDE Helper barryvdh/laravel-ide-helper
- registered for dev env only (via AppServiceProvider)
- caouecs/laravel-lang
- Hashids bridge vinkla/hashids
New Defaults
- LOG_CHANNEL=daily
- database.migrations=laravel_migrations
- queue.database.table=laravel_jobs
- queue.failed.table=laravel_failed_jobs
Other defaults:
- app.locale=de
- app.timezone=Europe/Berlin
Directories
- app/Support
- app/Eloquent/Models
- app/Eloquent/Collections
Helper Functions
(app/Support/helpers.php)
- array_ensured($array, $data)
- return $array, containing all keys of data, and value if $array doesnt have the key
- user()
- shorthand for auth()->user()
- decodeHashid($connection, $encoded, $default)
- returns decoded hashid of $encoded for $connection; if not possible, return $default
- encodeHashid($connection, $decoded)
- returns encoded hashid of $decoded for $connection
- isCurrentRelease()
- determines if running release is most recent release (useful for deployment related things)
Customizable classes and methods
-
App\Eloquent\Models\Model (trait: IsModel)
- is($model = null) (overwrite)
- allows argument to be null (returns false)
- isClass($class)
- is($model = null) (overwrite)
-
App\Eloquent\Models\Traits\HasTimestamps
- updateTimestamps() (overwrite)
- only sets updated_at when updating, not when creating
- updateTimestamps() (overwrite)
-
App\Eloquent\Models\Pivots\Pivot (trait: IsPivot)
-
App\Support\Collection (trait: CollectionTrait)
- implode($value, $glue = null, $skipNull = false) (overwrite)
- allows to skip null
- implode($value, $glue = null, $skipNull = false) (overwrite)
-
App\Eloquent\Collections\Collection (trait: CollectionTrait)
- without($model = null)
- return a new Collection without $model
- eachDelete()
- runs delete() on each model
- eachAppends($attributes)
- runs appends($attributes) on each model
- without($model = null)
Stubs
- artisan make:model
- (app/Console/stubs/model.stub)
- prefills table name
- has predefined areas for relationships
dhandarbeit-tk/laravel-boilerplate-platform 适用场景与选型建议
dhandarbeit-tk/laravel-boilerplate-platform 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 04 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dhandarbeit-tk/laravel-boilerplate-platform 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dhandarbeit-tk/laravel-boilerplate-platform 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dhandarbeit-tk/laravel-boilerplate-platform 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Alfabank REST API integration
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
Laravel package for Accurate Online API integration.
The skeleton application for the Geoffrey agent framework.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-26