@dieschittigs/contao-dev-server

Local development server for Contao 4+

Stats

StarsIssuesVersionUpdatedCreatedSize
@dieschittigs/contao-dev-server
520.3.0a year ago4 years agoMinified + gzip package size for @dieschittigs/contao-dev-server in KB

Readme

Contao Dev Server

About

Contao Dev Server is a local development server for Contao 4.x. If you ever worked with Laravel this project aims to be your php artisan serve.

Why not just php -S?

Contao 4 relies heavily on symlinks, the integrated php webserver doesn't like that and bails on some requests. Contao Dev Server is a thin JS wrapper that utilizes http-server for static resources and http-proxy to serve the meat via PHP.

Screenshots

Contao Dev Server serving the Contao backend

Symfony profiler and debugging tools are conveniently activated

Prerequisites

Installation

Install by entering sudo npm install -g @dieschittigs/contao-dev-server.

Usage

Enter your Contao project or start a new one by using our Yeoman Generator.
Launch by entering contao-dev-server.

Options

--help        Show help  
--version     Show version number  
--host        "127.0.0.1"  
--port        9000  
--rootDir     "./web"  
--production  false (if true: use app.php)  
--config      Add your own php.ini, if needed  
--phpExec     "php"
--phpWorkers  How many PHP workers should be spawned?, default: 5

Licence

ISC © Die Schittigs

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.