UnknownError42 / php-cphalcon-scaffold

PHP web application scaffold (full and multi-module skeleton) based on C Phalcon framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP C Phalcon Scaffold

It is basically a fresh setup of web application based on C Phalcon PHP framework. It provides multi-module configuration, all the features which are part of the framework and Docker setup (based on Alpine) for both: dev and prod environments.

Technologies

  • PHP 7.3 with composer
  • C Phalcon PHP framework 3.4
  • NGINX 1.15 web server

Requirements

with Docker

  • Make >= 4.1
  • Docker >= 17.05 with compose >= 1.18

without Docker

  • Make >= 4.1
  • PHP >= 7.2 with composer
  • C Phalcon PHP framework ^3.4
  • NGINX or Apache web server

Installation

Just clone the repository and customize the application to yourself.

You can register new modules and DI services (global) in ./app/Kernel.php. It's also possible to register DI services inside the given module. Just follow the example in ./src/App/App.php.

You can add new parameters in .env and .env.dist files, then register them in ./app/config/parameters.php.

You might want to use my Docker setup as well. You will find all the important commands in ./Makefile (development) and ./Makefile.prod files.

In other case you have to setup the environment by yourself. You can find the requirements above.

Quick start

  1. Clone the repository and navigate to the project root
  2. Create .env file based on .env.dist and fill the parameters
  3. Execute make build and let Docker build the images for you
  4. Execute make up to run the containers

Note: you may need to run make composer to fetch vendors in dev environment especially if your're doing it for the first time

  1. Application should be accessible at http://127.0.0.1:9460

License

MIT License

About

PHP web application scaffold (full and multi-module skeleton) based on C Phalcon framework

License:MIT License


Languages

Language:PHP 64.1%Language:Dockerfile 21.5%Language:Makefile 6.4%Language:Volt 3.4%Language:Gherkin 3.2%Language:Shell 1.3%