GithubHelp home page GithubHelp logo

nmapx / php-cphalcon-scaffold Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 45 KB

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

License: MIT License

Makefile 6.44% PHP 64.13% Shell 1.33% Volt 3.36% Gherkin 3.21% Dockerfile 21.54%
php phalcon scaffold bootstrap docker behat alpine

php-cphalcon-scaffold's Introduction

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

php-cphalcon-scaffold's People

Contributors

nmapx avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

unknownerror42

php-cphalcon-scaffold's Issues

awesome

sorry for the disturb i just one to say thank you !

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.