dragonmantank / fillet-sculpin-bundle
A bundle wrapper for Fillet to integrate with Sculpin
Requires
- dragonmantank/fillet: ^0.1
This package is auto-updated.
Last update: 2024-11-21 20:03:57 UTC
README
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.