Coder Social home page Coder Social logo

codelytv / php-basic-skeleton Goto Github PK

View Code? Open in Web Editor NEW
107.0 8.0 47.0 68 KB

πŸ˜πŸš€ PHP Basic Skeleton: Bootstrap your new projects using this Composer Project

Home Page: https://codely.com/cursos

License: MIT License

PHP 100.00%
php bootstrap skeleton sample phpunit composer codelytv example best-practices php7

php-basic-skeleton's Introduction

🐘 PHP Bootstrap (base / project skeleton)

Latest Version on Packagist Software License Build Status Total Downloads

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:

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:

  1. If you don't have it already, install Composer.
  2. Create your project based on the Packagist project. This will also download the project dependencies: composer create-project codelytv/php-bootstrap your-project-name.
  3. Move to the project directory: cd your-project-name
  4. Run all the checks: composer test. This will do some checks that you can perform with isolated commands:
    1. Codely Style: composer lint.
    2. Easy coding standard: composer style. If you want to fix style issues automatically: composer lint:fix.
    3. Static Analysis: composer static-analysis.
    4. PHP Unit: composer phpunit.
  5. Create your own repository:
    1. Initialize your own Git repository: git init
    2. Add the bootstrap files: git add .
    3. Commit: git commit -m "Initial commit with project boilerplate based on https://github.com/CodelyTV/php-bootstrap"
    4. Add your remote repository: git remote add origin [email protected]:your-username/your-project-name
    5. Upload your local commits to the new remote repo: git push -u origin master
  6. 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:

  1. Use this repository template
  2. Clone your project
  3. Move to the project directory: cd your-project-name
  4. If you don't have it already, install Composer.
  5. Install the project dependencies: composer install
  6. Run the tests: composer test.
  7. Start coding!

Related skeleton templates

This very same basic skeleton philosophy implemented in other programming languages:

php-basic-skeleton's People

Contributors

javiercane avatar juanmiguelbesada avatar rgomezcasas 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

php-basic-skeleton's Issues

Composer installation method is outdated

The available version of this skeleton on Packagist is the 1.2.1(18/07/2018) and it's not compatible with PHP 8.

Maybe it's a good idea to create a new release for keep the support of composer create-project codelytv/php-bootstrap your-project-name method?

Thanks! <πŸ’š>

Add Docker support

Add a Dockerfile allowing someone to clone the repository and start developing in PHP without having to install PHP in its local machine.

Note: We will continue to support using this project with composer create-project codelytv/php-bootstrap your-project-name because of the easiness to do so for the ones with an already local installation of PHP & Composer available. So the README.md section on how to start with Composer shouldn't be modified.

Feel free to contribute to this project solving this issue!

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.