PHP code example of ornitophp / starter
1. Go to this page and download the library: Download ornitophp/starter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ornitophp / starter example snippets
├── public/ # Front controller + static assets
│ ├── index.php # Single entry point
│ └── assets/ # CSS, images
├── app/ # Your code (App\ namespace)
│ ├── Controllers/ # AuthController, HomeController
│ ├── Middleware/ # Authenticate
│ └── Models/ # User
├── config/ # app.php, auth.php, session.php
├── database/ # Migrations (SQL files)
├── routes/ # web.php, api.php
├── views/ # PHP templates
│ └── errors/ # Branded error pages
├── storage/ # Runtime: logs, rate limits, auth flag
├── docs/ # Framework documentation
└── tests/ # PHPUnit test suite