Skip to content

A Skelleton Application with configured ZF 2, Doctrine 2, ZfcUser, BjyAuthorize and Bower

License

Notifications You must be signed in to change notification settings

xelax90/skelleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

328f07b · Jan 13, 2016
Sep 16, 2015
Nov 25, 2015
Dec 15, 2014
Jan 13, 2016
Sep 8, 2015
Dec 8, 2014
Sep 15, 2015
Oct 30, 2015
Nov 17, 2015
Jan 13, 2016
Sep 15, 2015

Repository files navigation

skelleton

A Skelleton Application with configured ZF 2, Doctrine 2, ZfcUser, BjyAuthorize and Bower

Setup

Requirements

  1. Bower
  2. Composer
  3. PHP >= 5.4

Configure

Application

  1. Copy config/autoload/local.php.dist to config/autoload/local.php
  2. Edit the new file and enter your MySQL data

Server

The Document root is public/. Example Apache config:

<VirtualHost *:80>
        DocumentRoot "/var/www/fsmpivideo/public"
        ServerName fsmpivideo.localhost
        <Directory "/var/www/fsmpivideo/public">
                DirectoryIndex index.php
                AllowOverride All
                Order allow,deny
                <IfModule mod_authz_core.c>
                        Require all granted
                </IfModule>
                Allow from all
        </Directory>
</VirtualHost>

Dont forget to enable mod_rewrite

Setup

  1. Open Commandline
  2. Navigate to your cloned repository
  3. run bower install
  4. run php composer.phar install
  5. run php vendor/bin/doctrine-module orm:schema-tool:create
  6. run php vendor/bin/doctrine-module data-fixture:import
  7. run php public/index.php bower prepare-packs

Things to know

User state

  • The user state is a bitmask
  • Activated: $user->getState & (1 << 0) !== 0
  • E-Mail verified: $user->getState & (1 << 1) !== 0

About

A Skelleton Application with configured ZF 2, Doctrine 2, ZfcUser, BjyAuthorize and Bower

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages