cubes-doo/laravel-skeleton-basic
Composer 安装命令:
composer create-project cubes-doo/laravel-skeleton-basic
包简介
Cubes Laravel project skeleton-basic
关键字:
README 文档
README
A Laravel starter project, for defining standards & kickoff speed 🚀
Read this in other languages: Srpski, Српски
Getting Started
These instructions will get you a copy of the project and help you get it up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
Installing
A step by step series of examples that will tell you how to get a development env running.
Firstly, we need to pull a project instance from packagist
composer create-project cubes-doo/laravel-skeleton-basic newProjectName
Now, if you want to use docker, first pull docker utillity files from our 'docker-compose' git repository:
git clone https://github.com/cubes-doo/docker-compose.git docker
Next, lets copy the docker/.env.example to a new docker/.env file
cp docker/.env.example docker/.env
Now, something more exciting 😁, lets start our docker container!
sudo docker/docker-start.sh
Since there could be some discrepancies between UID's on different machines, lets run:
cd docker ; ./docker-usermod.sh ; cd ../
just in case. The short explanation for this is: using this command ensures that you have the same privileges as a user in the docker shell, as you would on your own machine.
Now we can run:
sudo docker/docker-console.sh
to enter the docker container's shell, and then inside it, run:
composer install
in file .env in root check if APP_KEY has value (exmple: 'APP_KEY=base64:Q1teAHYgmZtZ5ZFD1CJZp8yzlQuBqUeXsz3Mn++/yl3='), if it doesn't also run:
php artisan key:generate
For making and filling your local database with test data you should run:
php artisan migrate --seed
and you are good to go!
The theme used on this project, developed by Coderthemes, isn't free. So, at least visually, this project won't be useful to you without a paid licence. If you are one of our colleagues here at Cubes, position yourself on the public/ folder:
cd public
and proceed to clone it from its gitlab repository like so:
git clone git@gitlab.cubes.rs:web/laravel-skeleton-theme.git theme
Go ahead, log in and explore! By default, the project is exposed to http://localhost:7737. If this is no good for you, please refer to docker/.env & .env files to change it.
Running code checks
Currently we are only using FriendsOfPHP/PHP-CS-Fixer, as a composer dependency. You'll find the ruleset at .php_cs.
There are also two commands of note to make code checking easy:
sudo docker/docker-php-cs-check.sh
does a dry-run of php-cs-fixer, only telling you what should be changed
and
sudo docker/docker-php-cs-fix.sh
actually fixes the code using php-cs-fixer
Running the tests
We created a script, that runs tests inside the Docker container:
sudo docker/docker-unit-test-run.sh
This script will run all exposed tests in the tests/ folder.
Deployment
Add additional notes about how to deploy this on a live system
Reading Material
- basics
- for those in the know
- for the brave
Built With
- Composer - PHP package management system
- Laravel 5.8 - The web framework used
- Docker - Containerization platform
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Aleksandar Dimic - Chief Science Officer - aleksandar-dimic
- Aleksa Cvijić - Developer - acvi
See also the list of contributors who participated in this project.
cubes-doo/laravel-skeleton-basic 适用场景与选型建议
cubes-doo/laravel-skeleton-basic 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 100 次下载、GitHub Stars 达 3, 最近一次更新时间为 2019 年 01 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 「cubes-doo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cubes-doo/laravel-skeleton-basic 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cubes-doo/laravel-skeleton-basic 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cubes-doo/laravel-skeleton-basic 相关的其它包
同方向 / 同关键字的高下载量 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.
统计信息
- 总下载量: 100
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-10