paysera/skeleton-lib
Composer 安装命令:
composer require paysera/skeleton-lib
包简介
Skeleton for new GitHub based libraries
README 文档
README
This is a skeleton for a new GitHub-based PHP library.
Following steps:
- change
composer.jsonfile:- change
nameanddescriptionfields; - change namespaces;
- change
typefromlibrarytosymfony-bundleif it's a Symfony bundle; - add keywords;
- add any additional requirements;
- change
- change year (and/or author) in
LICENCEif needed; - update this readme:
- replace all
:vendor/:package_nameoccurences with the vendor and name of your library; - read and replace TODOs in the readme;
- replace all
- change / add files in
srcdirectory, don't forget to modify namespace; - change / add test cases in
testsdirectory, don't forget to modify namespace; - after pushing initial commit, add the library in Packagist, Travis and Scrutinizer.
With each relase:
- you can fix code style with
composer fix-cs; - you can run tests and code-style checks with
composer test; - don't forget to update
CHANGELOG.md.
To start a library using this skeleton:
composer create-project paysera/skeleton-lib directory-name
Following readme is just the structure for your new library and is not related to the skeleton itself.
🔴 TODO: Change this part and title with description about the library.
Why?
🔴 TODO: Explain when and why developers should use this library – it's main purpose and/or differences from other solutions.
You can also rename this to ## Features or other purpose-like header.
Remove this part if purpose is already clear from the main description.
Installation
composer require :vendor/:package_name
Configuration
🔴 TODO: explain bundle configuration or remove this part for non-bundle libraries.
paysera_something: field: value
Usage
🔴 TODO: Explain how to use this library. Use code samples for better understanding.
Semantic versioning
This library follows semantic versioning.
See Symfony BC rules for basic information about what can be changed and what not in the API.
🔴 TODO: Remove following part of this section or use instead of previous one. Remove irrelevant items, like twig functions, if they are not provided by your library.
This bundle follows semantic versioning.
Public API of this bundle (in other words, you should only use these features if you want to easily update to new versions):
- only services that are not marked as
public="false" - only classes, interfaces and class methods that are marked with
@api - twig functions and tags
- console commands
- supported DIC tags
For example, if only class method is marked with @api, you should not extend that class, as constructor
could change in any release.
See Symfony BC rules for basic information
about what can be changed and what not in the API. Keep in mind, that in this bundle everything is
@internal by default.
Running tests
composer update
composer test
Contributing
Feel free to create issues and give pull requests.
You can fix any code style issues using this command:
composer fix-cs
paysera/skeleton-lib 适用场景与选型建议
paysera/skeleton-lib 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 3, 最近一次更新时间为 2019 年 04 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 paysera/skeleton-lib 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 paysera/skeleton-lib 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-01