/modules.zendframework.com

(Eventual) home for ZF2 module distribution

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

ZF2 Modules Site Build Status Dependency Status

Introduction

This site will eventually be a community site for publishing and sharing Zend Framework modules.

##Installation

###Main Setup

  • Clone this project git clone git://github.com/zendframework/modules.zendframework.com.git
  • Run composer install to initialize your vendors
  • Import data/0.sql into your database
  • Create a new application in GitHub
  • Copy config/autoload/github.local.php.dist to config/autoload/github.local.php and enter the Id and Secret provided during the application registration on GitHub
  • Copy config/autoload/database.local.php.dist to config/autoload/database.local.php and enter your database credentials here
  • Copy config/autoload/cache.local.php.dist to config/autoload/cache.local.php. It's optional

###Vagrant Setup

  • Clone this project: git clone git://github.com/zendframework/modules.zendframework.com.git
  • Create a new application in GitHub
  • Main URL and CALLBACK url must be the same without any routing. e.g. http://modules.zendframework.com
  • Remove the .dist suffix from the files in config/autoload and edit them according to your own credentials
    • The database information for vagrant is:
    • Username: modules
    • Database name: modules
    • Password: modules
  • Run vagrant up (You will need Vagrant)
  • Add an entry in your hosts (/etc/hosts or C:\Windows\system32\drivers\etc\hosts):
    • 192.168.56.101 modules.zendframework.dev
  • Browse to http://modules.zendframework.dev/

Development Mode

To enable development mode:

  • Toggle the development mode flag: php public/index.php development enable
  • Copy config/autoload/development.local.php.dist to config/autoload/development.local.php
  • Copy vendor/zendframework/zend-developer-tools/config/zenddevelopertools.local.php.dist to config/autoload/zenddevelopertools.local.php

Deployment

The master branch of this repository is manually deployed live to modules.zendframework.com by @GeeH.

💡 After deployment, a tag is created, so the latest of the releases represents what is deployed to production.