jeffpascal/php-bootstrap
Composer 安装命令:
composer create-project jeffpascal/php-bootstrap
包简介
Starting point if you want to bootstrap a project in PHP following best practices.
README 文档
README
Introduction
This is a repository intended to serve as a starting point if you want to bootstrap a project in PHP. This repository has been explained in the CodelyTV video "Introducción a PHP: Cómo configurar tu entorno de desarrollo 🐘" (Spanish).
It could be useful if you want to start from scratch a kata or a little exercise or project. The idea is that you don't have to worry about the boilerplate, just run composer create-project codelytv/php-bootstrap your-project-name and there you go:
- Latest versions of PHP and PHPUnit
- Best practices applied:
README.md(badges included)LICENSEcomposer.jsonphpunit.xml.gitignore.editorconfig- [
.travis.yml][link-travis-yml] .scrutinizer.yml
- Some useful resources to start coding
How To Start
You have 2 different alternatives: Using our Packagist project with Composer, or manually cloning this repo:
Using Composer
Start completely from scratch without having to delete this bootstrap project Git history:
- If you don't have it already, install Composer.
- Create your project based on the Packagist project. This will also download the project dependencies:
composer create-project codelytv/php-bootstrap your-project-name. - Move to the project directory:
cd your-project-name - Run all the checks:
composer test. This will do some checks that you can perform with isolated commands:- PHP Parallel Lint:
composer lint. - PHP Style Check:
composer style. If you want to fix style issues automatically:composer fix-style. - PHP Unit:
composer phpunit.
- PHP Parallel Lint:
- Create your own repository:
- Initialize your own Git repository:
git init - Add the bootstrap files:
git add . - Commit:
git commit -m "Initial commit with project boilerplate based on https://github.com/CodelyTV/php-bootstrap" - Add your remote repository:
git remote add origin git@github.com:your-username/your-project-name - Upload your local commits to the new remote repo:
git push -u origin master
- Initialize your own Git repository:
- Start coding!
Cloning the repository
Just in case you prefer to avoid dealing with composer create-project, you can also clone this repository. We recommend to follow the next step by step process in order to avoid adding the bootstrap project commits to your project Git history:
- Use this repositoy template
- Clone your project
- Move to the project directory:
cd your-project-name - If you don't have it already, install Composer.
- Install the project dependencies:
composer install - Run all the checks:
composer test. This will do some checks that you can perform with isolated commands:- PHP Style Check:
composer style. If you want to fix style issues automatically:composer fix-style. - PHP Unit:
composer phpunit.
- PHP Style Check:
- Start coding!
Helpful resources
PHP 7
PHPUnit
Refactoring
- Refactoring.guru Code Smells catalog
- Refactoring.guru Refactorings catalog
- SourceMaking Refactorings catalog
- Martin Fowler Refactorings catalog
- CodelyTV Refactoring videos (Spanish)
Other programming languages
About
This hopefully helpful utility has been developed by CodelyTV and [contributors][link-contributors].
We'll try to maintain this project as simple as possible, but Pull Requests are welcomed!
License
The MIT License (MIT). Please see License File for more information.
jeffpascal/php-bootstrap 适用场景与选型建议
jeffpascal/php-bootstrap 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 11 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bootstrap」 「TDD」 「boilerplate」 「Skeleton」 「kata」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jeffpascal/php-bootstrap 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jeffpascal/php-bootstrap 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jeffpascal/php-bootstrap 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Helper that decorates any SUS with a phpspec lazy object wrapper
Provides access to magento2 object manager from behat and allows to change magento config settings temporarly
PHP class to extend when building a WordPress plugin allowing you to follow smart plugin setup standards.
Anax htmlform module.
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
Laravel 5.7 Boilerplate based on Bootstrap 4 and Tabler for Backend.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-25