Keep Coding

Never Stop Learning

A Composer ready starter kit

After doing a few open-source projects I found myself doing some steps again and again to setup a new repository on GitHub. I live in PHP world and what I normally do is to create a Composer package along with CI operations and bunch of automated code review tools.

This might seem like an overkill specially for small projects but believe or not it pays off as the project grows. So I came up with a Composer ready starter kit to help speed up starting PHP projects on GitHub which can be found here. It includes:

To get started:

  • Pull the repo
  • Rename any php-base-project and PhpBaseProject with your project name and appropriate namespace
  • Create an account on Travis, Scrutinizer and Code Climate and allow access to your repository
  • Update composer.json with the relevant information to your project
  • Update .travis.yml with your repository token from Code Climate
  • Update readme file with the right path to the badges
  • Update author name in the license

2 Comments

  1. Just wanted to say thank you for this handy starter template. I as well find myself repeating a much of the ‘start up’ process for small projects. This will help out a bunch towards decreasing ramp up effort.

  2. Just add the CI service: https://circleci.com in this blog post.
    The CircleCI is the alternative CI service and it’s powerful and great service, too.

    Thanks.

Leave a Reply to Peter Li Cancel reply

Your email address will not be published.

*