Giter VIP home page Giter VIP logo

php-template's Introduction

PHP Template

A simple PHP Template Project with boilerplate code to start with

Folder structure

- bootstrap
    - app.php: Library loader which autoloads and set-ups all the used Packages
- controllers
    - HomeController.php: A sample Controller file
- public
    - index.php: The hosted file.
- .env.example: Sample environment file
- .gitignore
- LICENCE
- README.md
- composer.json: Composer file with all dependencies
- composer.lock
- helpers.php: Helper library which is autoloaded in composer.json file
- routes.php: File which contains all the routes for the application

Dependencies used ๐Ÿ“ฆ

How to get started ๐Ÿš€

composer install # Installing dependencies
cp ./.env.example ./.env # Creating environment file
cd ./public && php -S localhost:8001 # Hosting the application on port 8001

Visit: http://localhost:8001 to se it in action.

How do I use it??? ๐Ÿค”

  1. Add the route in routes.php, refer to sample route for help.
  2. Add the method in controllers/HomeController or you can create your own controller file in the same folder.
  3. Navigate to your route.

Why this project??? ๐Ÿค”

This project started as a simple minimal PHP boilerplate to get started with a PHP project. A project which will provide you basic routing and environment settings with basic folder structure like an open canvas giving you freedom to add any dependencies that you may require and even change the folder structure as you please. No restriction a simple template for your PHP project.

Courtesy โค๏ธ

php-template's People

Contributors

akshay-khale-vamaship avatar akshaykhale1992 avatar

Stargazers

 avatar

Watchers

 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.