Bundle wrapper for Fillet
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Fillet/FilletBundle
LICENSE
README.md
composer.json

README.md

Fillet Bundle - A Bundle interface for working with Fillet

This bundle allows for Fillet integration directly into Sculpin.

Currently supported parsers:

  • WordpressExport

Sample Usage

Add the bundle to your site's sculpin.json file:

"require": {
        "dragonmantank/fillet-sculpin-bundle": "~0.1"
    },

and update sculpin's dependencies:

php sculpin.phar update

This will pull down the necessary files for Fillet. You then need to add the bundle to Sculpin by adding it to your app/SculpinKernel.php file. If this file doesn't exist, you can use the following to get going:

<?php

class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel
{
    protected function getAdditionalSculpinBundles()
    {
        return array(
            'Fillet\FilletBundle\FilletBundle',
        );
    }
}

You can now call Fillet by doing the following:

php sculpin.phar fillet:fillet --file=path/to/file.xml --parser=WordpressExport

Fillet will then parse the file and generate the output! Assuming nothing blows up...

Update sculpin.phar!

If you get an issue trying this and encounter a sculpin.phar error running update, you might need to update sculpin.phar to a version built after 2015-02-26. This affects people using the blog skeleton, as some of the dependencies that get pulled in have versions that aren't compatible with older versions of Sculpin. That's fixed now, so just update sculpin.phar and you are all set.