2017 © Pedro Peláez
 

symfony-bundle quote-generator-bundle

A simple Symfony 2|3 bundle for generating quotes.

image

nathiss/quote-generator-bundle

A simple Symfony 2|3 bundle for generating quotes.

  • Monday, December 26, 2016
  • by nathiss
  • Repository
  • 0 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes., (*1)

Installation

Step 1. Install

Open a command console, enter your project directory and execute the following command to download the latest stable version:, (*2)

$ composer require nathiss/quote-generator-bundle

Step 2. Enable bundle

Enable the bundle by adding it to the list of registred bundles in the app/AppKernel.php file:, (*3)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Nathiss\Bundle\QuoteGeneratorBundle\NathissQuoteGeneratorBundle(),
            // ...
        );
        // ...
    }
    // ...
}

Step 3. Update database schema

To update schema enter this command:, (*4)

$ ./bin/console doctrine:schema:update --force

Step 4. Configuration (optional)

You can override the default template by adding these lines to your app/config/config.yml file:, (*5)

nathiss_quote_generate:
    template: 'path/to/your/template.html.twig'

Default: NathissQuoteGeneratorBundle:Default:quote.html.twig, (*6)

Step 5. Load fixtures (optional)

To load fixtures enter this command:, (*7)

$ ./bin/console doctrine:fixtures:load

(TIP: add --append options if you wish not to delete data in your database), (*8)

Usage

Execute generate_quote() function inside your twig template:, (*9)

{# ... #}
{{ generate_quote() }}
{# ... #}

will render as:, (*10)

{# ... #}
<blockquote class="nathiss-quote">
    <p>Some quote</p>
    <span class="nathiss-quote-author">Some author</span>
</blockquote>
{# ... #}

License

See the license file., (*11)

The Versions

26/12 2016

dev-master

9999999-dev https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kamil Rusin

bundle generator symfony quote

24/09 2016

v1.0.3

1.0.3.0 https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kamil Rusin

bundle generator symfony quote

23/09 2016

v1.0.2

1.0.2.0 https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kamil Rusin

bundle generator symfony quote

22/09 2016

v1.0.1

1.0.1.0 https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kamil Rusin

bundle generator symfony quote

20/09 2016

v1.0.0

1.0.0.0 https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kamil Rusin

bundle generator symfony quote

17/09 2016

dev-tests

dev-tests https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kamil Rusin

bundle generator symfony quote

14/09 2016

v1.0.0-beta2

1.0.0.0-beta2 https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Kamil Rusin

bundle generator symfony quote

11/09 2016

v1.0.0-beta1

1.0.0.0-beta1 https://github.com/nathiss/QuoteGeneratorBundle

A simple Symfony 2|3 bundle for generating quotes.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Kamil Rusin

bundle generator symfony quote