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

Select Status

RSS

application_zf (9) Versions 0.3.1

Installs/Configures ZendSkeletonApplication

Policyfile
Berkshelf
Knife
cookbook 'application_zf', '= 0.3.1', :supermarket
cookbook 'application_zf', '= 0.3.1'
knife supermarket install application_zf
knife supermarket 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 (Skeleton) 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_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)
  • node['zf']['deploy']['modules']['git'] - Array of git zf2 module repositories that you want to deploy

Example of usage in Vagrant

# ...
config.vm.provision :chef_solo do |chef|
# ...
chef.add_recipe "application_zf"
    chef.json = {
        :fqdn => "app.local",
        :zf => {
            :version => 'zf/release-2.1.0',
            :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"
                }
            ]
        }
    }
}

Deploy your modules

If you want to deploy your module you have to add the application_zf::deploy_module_git recipe.

    chef.json = {
        :zf => {
            :deploy => {
                :modules => {
                    :git => [
                        {
                            :name => "YourDevModule",
                            :uri => "http://github.com/username/YourDevModule.git",
                            :branch => "master"
                        }
                    ]
                }
            }
        }
    }

The branch key, is in fact the revision, for that reason you can also use a
git commit id.

ZendDeveloperTools integration

If want to enable the Zend Developer Tools you can add application_zf::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

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

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found