定制 dankempster/template-php-component 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dankempster/template-php-component

Composer 安装命令:

composer create-project dankempster/template-php-component

包简介

A template workspace for developing a new component/package. Includes configuration for travis-ci.org, Scrutinizer.com and Coveralls.io.

README 文档

README

Usage

Install the template using composer

$ composer create-project dankempster/workspace-component myvendor-mycomponent/
$ cd myvendor-mycomponent/

Replace distribtion files

$ rm composer.json readme.md
$ mv composer.json.dist composer.json
$ touch readme.md

The template uses the example package name Acme\Component. Replace that with your package name by performing search and replace on the following files:

  • composer.json :
    • acme/component - my-vendor/my-component
    • Acme\\Component\\ - MyVendor\\MyComponent\\
  • phpunit.xml.dist
    • Acme/Component - MyVendor/MyComponent

Now write your own readme.md file.

Directory Structure

Fairly simple and self explanatory structure:

|- docs/
|- src/
|- tests/
|- .gitignore.yml
|- .composer.json
|- phpunit.xml.dist
`- Readme.md

CI and SaaS

This template also includes configuration files for:

  • Travis CI
  • Scrutinizr
  • Coveralls

All of which are free for Open Source projects.

Tip: Also check out SensionInsight - no configuration required.

Travis CI

Travis CI is a hosted continuous integration service with Github integration. So when the hosted repo revies pull requests or pushes, Travis CI will start a build and run your projects tests.

Scrutinizer

Is a code quality analysis tool, in fact it's many tools in one. Like Travis CI, Scrutiinizer integrates with Github and so will perform an "inspection" when the hosted repo recieves any pushes or pull requests. This workspace doesn't include any default configuration for Scrutinizer (I like to use global configuratoins in my account), but Travis is configured (.travis.yml) to send code coverage reports (clover.xml) to Scrutiinizer.

Coveralls

Coveralls is an only code coverage visualisation aid. This repo uses the satooshi/php-coveralls as a dev-dependancy to upload cover coverage reports to Coveralls after a Travis build.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-02