2017 © Pedro Peláez
 

project phalcon-skeleton

Simple skeleton application using the Phalcon3 Framework

image

mamuz/phalcon-skeleton

Simple skeleton application using the Phalcon3 Framework

  • Monday, October 10, 2016
  • by mamuz
  • Repository
  • 3 Watchers
  • 15 Stars
  • 220 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 9 Versions
  • 1 % Grown

The README.md

phalcon-skeleton

Introduction

This is an application skeleton for Phalcon3 Framework. This application is meant to be used as a starting place. It's built on top of https://github.com/mamuz/phalcon-application which simplifies application bootstrapping., (*1)

Requirements

PHP7 and Phalcon3 is needed, follow install steps at https://github.com/phalcon/cphalcon, (*2)

Install

Step 1: Create new project with composer

composer create-project -n -sdev mamuz/phalcon-skeleton path/to/install

Step 2: Customize new project to your needs

Run ./bin/customize.sh inside application root to customize the project., (*3)

It will ask you for assigning following changes:, (*4)

  1. Enter the new classnamespace identifier to use, (*5)

    Composer Autoloader is mapping as "autoload": {"psr-4": {"PhalconSkeleton\\": "src/"}}, (*6)

    e.g customizing the identifier to Application will lead to "autoload": {"psr-4": {"Application\\": "src/"}}, according to that all FQCN of all classes will be changed., (*7)

  2. Enter composer namespace, (*8)

    Composer project name is defined as "name": "mamuz/phalcon-skeleton", (*9)

    e.g. customizing the namespace to user/application leads to "name": "user/application", (*10)

  3. Enter a short project description, (*11)

    This text is used for prepared README.md and will be placed as description value inside composer.json, (*12)

  4. Enable view support?, (*13)

    If support is desired, application config will be prepared and in addition you will have example view templates., (*14)

How To's

Please check https://github.com/mamuz/phalcon-application for detailed informations about bootstrapping. For Phalcon usages in general please visit https://docs.phalconphp.com., (*15)

Logging

This application uses Monolog as a logger, you can customize it in https://github.com/mamuz/phalcon-skeleton/blob/master/config/application.php, (*16)

Error Handling

Error Handling with Phalcon's MVC is implemented in https://github.com/mamuz/phalcon-skeleton/blob/master/src/Application/Service/ErrorHandler.php, (*17)

Adding new Services

First of all create a Factory inside src/Application/Service, register that factory to services in application config., (*18)

After that you should add a Getter for that to Service Aware Trait, which make your life easier for fetching those ones inside your controllers., (*19)

The Versions

10/10 2016

dev-master

9999999-dev

Simple skeleton application using the Phalcon3 Framework

  Sources   Download

The Requires

 

10/10 2016

v1.0.0

1.0.0.0

Simple skeleton application using the Phalcon3 Framework

  Sources   Download

The Requires

 

20/10 2015

v0.1.6

0.1.6.0

Simple, skeleton application using the Phalcon2 to have a good starting place

  Sources   Download

The Requires

 

17/08 2015

v0.1.5

0.1.5.0

Simple, skeleton application using the Phalcon2 to have a good starting place

  Sources   Download

The Requires

 

17/08 2015

v0.1.4

0.1.4.0

Simple, skeleton application using the Phalcon2 to have a good starting place

  Sources   Download

The Requires

 

17/08 2015

v0.1.3

0.1.3.0

Simple, skeleton application using the Phalcon2 to have a good starting place

  Sources   Download

The Requires

 

17/08 2015

v0.1.2

0.1.2.0

Simple, skeleton application using the Phalcon2 to have a good starting place

  Sources   Download

The Requires

 

16/08 2015

v0.1.1

0.1.1.0

Simple, skeleton application using the Phalcon2 to have a good starting place

  Sources   Download

The Requires

 

16/08 2015

v0.1.0

0.1.0.0

  Sources   Download

The Requires