Developed with love by KnpLabs Hire us for your project!
88

TuckConverterBundle

by rosstuck

Adds the Symfony2 command container:convert which converts service config files to other formats

TuckConverterBundle

Adds the Symfony2 command "container:convert" which converts service config files to other formats

For one-off files, there's also a hosted Web UI you can use instead of installing this bundle.

What it does

You can specify the file to convert either on the commandline:

./app/console container:convert yml path/to/file.xml

Or leave out the file and do the conversion interactively.

./app/console container:convert yml

Adding the -o flag will output the new file instead of prompting you to write it, presumably so you can pipe it to
another process somewhere.

The actual conversion is based on Symfony's built-in loaders and dumpers, so this should be exceedingly reliable.

TODO

  • Remove a coupling on input for file extension
  • Update the DependencyInjection/*Extension files as well (perhaps with PHP-Parser?)
  • Moar tests

Installation

Run the command below to install via Composer

composer require tuck/converter-bundle
The MIT License (MIT)

Copyright (c) 2014 Ross Tuck

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tuck_converter:       []
  • Merge pull request #8 from vpassapera/fix/doc-block-fixes
    By rosstuck, 5 years ago
  • Adding appropriate interfaces
    By vpassapera, 5 years ago
  • Merge pull request #4 from rdohms/patch-2
    By rosstuck, 5 years ago
  • Update composer.json
    By rdohms, 5 years ago
  • Merge pull request #3 from rdohms/patch-1
    By rosstuck, 5 years ago
  • Update README.md
    By rdohms, 5 years ago
  • Merge branch 'master' of github.com:rosstuck/TuckConverterBundle
    By rosstuck, 6 years ago
  • Ensure temp files are erased, even with an error
    By rosstuck, 6 years ago
  • Link to the web version in the README
    By rosstuck, 6 years ago
  • Fix mock class naming mismatch
    By rosstuck, 6 years ago
  • Unleash the php-cs-fixer!
    By rosstuck, 6 years ago
  • Extract interfaces, fix some services.xml issues
    By rosstuck, 6 years ago
  • Fix typo in docblock
    By rosstuck, 6 years ago
  • Cleanup temp files after conversion
    By rosstuck, 6 years ago
  • Fix incorrect namespace
    By rosstuck, 6 years ago
  • Update README
    By rosstuck, 6 years ago
  • Add feature to convert strings, not just files
    By rosstuck, 6 years ago
  • Remove test file
    By rosstuck, 6 years ago
  • Initial import
    By rosstuck, 6 years ago
  • Initial commit
    By rosstuck, 6 years ago