Skip to content

AV4TAr/CASEZfSkeletonApplication

 
 

Repository files navigation

#CASE preconfigured ZendSkeletonApplication

##Introduction

This is a simple, skeleton application using the ZF2 MVC layer and module systems. This Sekleton have some other modules preconfigured for CASE Design, like Doctrine, ZfcUser, etc.

##Installation

##Using Composer (recommended)

Clone the repository and manually invoke composer using the shipped composer.phar:

cd my/project/dir
git clone git://github.com/AV4TAr/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install

(The self-update directive is to ensure you have an up-to-date composer.phar available.)

You would then invoke composer to install dependencies per the previous example.

This will install:

##Web Server Setup

Apache Setup

To setup apache, setup a virtual host to point to the public/ directory of the project and you should be ready to go! It should look something like below:

<VirtualHost *:80>
    ServerName application.dev
    DocumentRoot /path/to/zf2-application/public
    SetEnv APPLICATION_ENV "development"
    <Directory /path/to/zf2-application/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Database Setup

##Application Setup

Doctrine Setup

Copy

/config/autoload/local.php.dist

to

/config/autoload/local.php

and update the params sub-array

'params' => array (
	'host' => 'localhost',
	'port' => '3306',
	'user' => 'root',
	'password' => 'root',
	'dbname' => 'database'
)

Update the database schema using cli running migrations:

$ ./vendor/bin/doctrine-module migrations:migrate

###Development mode

Copy

/config/development.config.php.dist

to

/config/development.config.php

That will activate ZFTool and the ZendDevloperTools bar.

##Diagnostics

##Error Handling

  • Zf2Whoops
    • 'Zf2Whoops', // must be added as the first module in the development.config.php file
    • copy zf2-whoops.local.php.dist to zf2-whoops.local.php in /config/autoload

#Features

  • User Management
  • Admin panel /admin

##Doing

  • ZendDiagnostics with base tests
  • Disk space

##TODO

  • ZendDiagnostics with base tests
    • Disk space
  • Default role for new users
    • Done through migration?
  • check https://github.com/darkmatus/roleuserbridge
  • User Crud
  • Integrate Navication to Application
  • Move migrations to specific modules so that somebody can deactivate zfcuser?
  • Generate autoloadres
  • Application LOG
  • Application CACHE

About

Sample application skeleton using the ZF2 MVC layer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.9%
  • CSS 0.1%