Git Product home page Git Product logo

default-project's Introduction

Default Project

This is a default structure for PHP projects. With this template you can speed up the process of creating of new: open-source, proprietary, test, demo and etc. projects!

This template has basic configuration for PHPUnit and PHP-CS-Fixer libraries, configured composer.json with PSR-4 namespaces for source code and tests, .gitignore with basic files and directories to exclude them from Git, changelog file and README with cool badges :)

Packagist Packagist Custom badge

Installation

For creating new project based on this template just execute the following command

$ composer create-project greeflas/default-project project-name

NOTE: You can add --no-dev right after create-project flag if you don't want to install dev dependencies to your project

Usage

Main changes that you need to do:

  1. Update name, description, keywords, authors section of the composer.json file, lines 2-4, 9-10.

  2. Update header template in .php_cs.dist file, lines 4-9.

  3. Update copyright in LICENSE file, line 3.

Other changes that you may do:

  1. Change namespace for source code in composer.json, line 23 and for tests line 28.

  2. Change PHP version in composer.json line 16.

  3. Change rules for code style in .php_cs.dist file.

  4. Add some new files and directories to .gitignore file to exclude them from Git.

  5. Update readme according to your project

  6. Update changelog according to your project

Code style fixer

To check the code style just run the following command

$ composer cs-check

to fix the code style run next command

$ composer cs-fix

Tests

You can run tests with composer command

$ composer tests

License

license

This project is released under the terms of the BSD-3-Clause license.

Copyright (c) 2018 - 2020, Volodymyr Kupriienko

default-project's People

Contributors

dependabot-preview[bot] avatar greeflas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

default-project's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.