Getting Started

Requirements

Installation

Using composer

composer create-project php-rise/rise-skeleton my-project

Project Structure

File / Folder Description
assets/ Contains CSS and JavaScript files.
bin/ Contains a command line tool. Other custom scripts can be put here.
composer.json
composer.lock
Composer dependencies and configurations.
config/ Various configuration files including database, routes, etc., see Configurations.
dev.php
dev.sh
Development server.
node_modules/ Node.js modules.
package.json
package-lock.json
Node.js dependencies.
phpunit.xml PHPUnit configurations.
public/ Contains index.php (the entry point of the application), static files and compiled assets.
sessions/ Sessions files.
src/ Application source code.
templates/ HTML templates.
tests/ Unit tests.
vendor/ Composer packages.

Starting Up the Website

You can skip this part if you have set up the web server.

PHP Built-in server

To start the built-in server, use the command:

./dev.sh

Then open the browser and navigate to http://localhost:3000.

dev.sh is a shortcut to start the built-in server for development. For details of the built-in server, please visit http://php.net/manual/en/features.commandline.webserver.php.