Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

application_zf (9) Versions 0.2.0

Installs/Configures ZendSkeletonApplication

Berkshelf/Librarian
Policyfile
Knife
cookbook 'application_zf', '= 0.2.0'
cookbook 'application_zf', '= 0.2.0', :supermarket
knife cookbook site install application_zf
knife cookbook site download application_zf
README
Dependencies
Quality -%

Description

This cookbook installs and configures Zend Skeleton Application according to the instructions at https://github.com/zendframework/ZendSkeletonApplication

Requirements

Platform

  • Debian
  • Ubuntu

Cookbooks

  • apt
  • build-essential
  • php
  • apache2
  • openssl

Attributes

  • node['zf']['version'] - Set the version to download. Using 'latest' (the default) will install the most current version.
  • node['zf']['dir'] - Set the location to place zend skeleton application files. Default is /var/www.
  • node['zf']['server_name'] - Set the ServerName used in apache vhost. Default is node['fqdn'].
  • node['zf']['server_aliases'] - Array of ServerAliases used in apache vhost. Default is node['fqdn'].
  • node['zf']['modules'] - Array of Module names that you want to enable in your application.config.php
  • node['zf']['composer']['packages'] - Array of composer modules to install see dedicated section
  • node['zf']['dev']['version'] - Set the version of ZendDeveloperTools module. Default is dev-master
  • node['zf']['skeleton']['repository'] - Repository used to download Skeleton App. Default is https://github.com/zendframework/ZendSkeletonApplication)

Example of usage in Vagrant

# ...
config.vm.provision :chef_solo do |chef|
# ...
chef.add_recipe "application_zf"
    chef.json = {
        :zf => {
            :version => 'zf/release-2.1.0',
            :server_name => 'zend.local',
            :server_aliases => 'my.local'
        }
    }
end
# ...

Vagrant, develop your module using shared folders

Always is your Vagrantfile

config.vm.share_folder("my-name-module", "/var/www/zend/module/MyNameModule", "../MyNameModule")

Add your module in the configuration

chef.json = {
    :zf => {
        :modules => [
            "Application",
            "MyNameModule"
        ],
# ...

Add third parties libraries with Composer

You can use the

chef.json = {
    :zf => {
        :modules => [
            "Application",
            "ZfcBase",
            "ZfcUser"
        ],
        :composer => {
            :packages => [
                {
                    :version => "0.1.*",
                    :name => "zf-commons/zfc-user"
                }
            ]
        }
    }
}

ZendDeveloperTools integration

If want to enable the Zend Developer Tools you can add dev_tools in your configuration

chef.add_recipe "application_zf::dev_tools"

And remember to add the ZendDeveloperTools in your module list

chef.json = {
    :zf => {
        :modules => [
            "ZendDeveloperTools",
            "Application"   
        ]
    }
}

Tune the ZendDeveloperTools version

Set the dev version

node['zf']['dev']['version'] = "dev-master"

Add Zend\Db profiler

Is simple, add the bjyoungblood/BjyProfiler package

:composer => {
    :packages =>[
        {
            :version => "dev-master",
            :name => "bjyoungblood/BjyProfiler"
        }
    ]
}

And also enable module BjyProfiler after ZendDeveloperTools

:modules => [
    "ZendDeveloperTools",
    "BjyProfiler"

Dependent cookbooks

apache2 >= 0.99.4
apt >= 0.0.0
build-essential >= 0.0.0
openssl >= 0.0.0
php >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found