Skip to content

MagdalenaZuba/CookbookBundle

 
 

Repository files navigation

CookbookBundle

This repository contains a eZ Publish 5.x and eZ Platform Cookbook Bundle, full of working examples for using eZ Publish 5.x and eZ Platform Public API.

Getting started

Required tools:

  • PHP (7.0+ is recommended)
  • Composer
  • Git
  1. Create and install eZ Platform using composer:

    composer create-project ezsystems/ezplatform

    Follow the instructions that show up on the screen to have fully working clean install of eZ Platform.

  2. Clone (using git) CookbookBundle into your eZ Platform project:

    # execute in your eZ Platform project working directory:
    cd src
    # this directory is needed to generate autoload conforming to PSR-0
    mkdir EzSystems && cd EzSystems
    # clone `CookbookBundle`
    git clone [email protected]:ezsystems/CookbookBundle.git CookbookBundle
    cd ../..
    # dump composer autoloader
    composer dump-autoload
  3. Enable the bundle in AppKernel.php:

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new EzSystems\CookbookBundle\EzSystemsCookbookBundle(),
        );
    
        // ...
    }
  4. Clear Symfony cache

    php app/console cache:clear
  5. Try already defined commands. You can find all available commands by:

    php app/console |grep 'ezpublish:cookbook'

That's all!

About

eZ Publish 5.x Cookbook examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%