2017 © Pedro Peláez
 

library sculpin-content-generator-bundle

Provides new Sculpin commands for generating new content

image

opdavies/sculpin-content-generator-bundle

Provides new Sculpin commands for generating new content

  • Sunday, February 18, 2018
  • by opdavies
  • Repository
  • 2 Watchers
  • 0 Stars
  • 405 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 9 Versions
  • 23 % Grown

The README.md

Sculpin Content Generator Bundle

Adds additional console commands to automate the creation of new content., (*1)

Installation

Downloading

Add add the bundle into your sculpin.json or composer.json file., (*2)

"require": {
    "opdavies/sculpin-content-generator-bundle": "^1.0"
}

Install it by running sculpin install or composer install., (*3)

Enabling

Now you can register the bundle within the SculpinKernel class. If you don’t have on, create one at app/config/SculpinKernel.php., (*4)

use Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel;

/**
 * Class SculpinKernel
 */
class SculpinKernel extends AbstractKernel
{
    /**
     * {@inheritdoc}
     */
    protected function getAdditionalSculpinBundles()
    {
        return [
            'Opdavies\Sculpin\Bundle\ContentGeneratorBundle\SculpinContentGeneratorBundle'
        ];
    }
}

Usage

With the bundle enabled, you can now see the additional commands by run the sculpin command. Currently, only content:new:post is added, which generates posts., (*5)

The next step for is to allow for the bundle to be extended and to allow for customised templates, and also the ability to add commands for other content types - or ideally load them automatically from sculpin_content_types., (*6)

Options

The available options are:, (*7)

--title

The title of the post. This will be populated when the template is generated., (*8)

If empty, you will be required to enter a title interactively when executing the content:new:post command., (*9)

--filename

The name of the file to generate., (*10)

--extension

The file extension to use., (*11)

If empty, you will be required to enter a title interactively. A default filename will be provided based on the provided title and the current date., (*12)

Author

Oliver Davies - PHP Developer and Linux System Administrator., (*13)

The Versions

18/02 2018

dev-master

9999999-dev

Provides new Sculpin commands for generating new content

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

sculpin

24/12 2016

1.1.1

1.1.1.0

Provides new Sculpin commands for generating new content

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

sculpin

11/09 2016

1.1.0

1.1.0.0

Provides new Sculpin commands for generating new content

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

sculpin

10/09 2016

1.0.3

1.0.3.0

Provides new Sculpin commands for generating new content

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

sculpin

09/09 2016

1.0.2

1.0.2.0

Provides new Sculpin commands for generating new content

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

sculpin

14/02 2016

1.0.1

1.0.1.0

Provides new Sculpin commands for generating new content

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

sculpin

14/02 2016

1.0.0

1.0.0.0

Provides new Sculpin commands for generating new content

  Sources   Download

The Requires

  • php >=5.3.3

 

sculpin

14/02 2016

0.1.0

0.1.0.0

Provides new Sculpin commands for generating new content

  Sources   Download

The Requires

  • php >=5.3.3

 

sculpin

11/02 2016

0.0.3

0.0.3.0

Provides new Sculpin commands for generating new content

  Sources   Download

The Requires

  • php >=5.3.3

 

sculpin