cubes-doo/laravel-skeleton-basic 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Composer
  2. Docker

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

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 cubes-doo/laravel-skeleton-basic 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 100
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-10