GithubHelp home page GithubHelp logo

php-app-bootstrap's Introduction

PHP Web Application Bootstrap

Latest Stable Version Build Status Scrutinizer Quality Score Code Coverage Total Downloads License

A bootstrap for a web application in PHP. Don't set, just code!

About

This bootstrap will install all the basic files and settings to start a PHP web application.

This assumes you'll use Git for vcs, Composer for dependencies, PHPUnit for testing, Travis and Scrutinizer for integration servers.

Files architecture

├── public
|   ├── .htaccess
|   ├── index.php
|   └── robots.txt
├── src
|   └── Dummy.php
├── tests
|   └── DummyTest.php
├── vendor
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .scrutinizer.yml
├── .travis.yml
├── composer.json
├── composer.lock
├── LICENSE
├── phpunit.xml.dist
├── README.md
└── run
  • "public" is the web entry point.
  • "src" contains all your PHP code.
  • "tests" contains all your PHP tests. See PHPUnit for more information.
  • "vendor" contains all your PHP dependencies. See Composer for more information.

Installation

With Samurai (recommended)

Just execute Samurai with 'app' bootstrap.

$ samurai new app

With Composer

First, execute Composer to create your project.

$ composer create-project raphhh/php-lib-bootstrap path/to/my/project

Go into your project.

$ cd path/to/my/project

Then, you need to replace composer.json with your specific info.

Usage

Launch unit tests

This bootstrap is configured to use PHPUnit. To run the tests, cd to your project and enter the following command in your console:

$ vendor/bin/phpunit

Launch app in the browser

The public entry point of the application is the dir "public". To run the app, cd to your project and enter the following command in your console:

$ run

This command will launch for you the PHP internal server. Then, open your browser and go to http://localhost:8080/

php-app-bootstrap's People

Contributors

raphhh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.