An open API service indexing awesome lists of open source software.

https://github.com/dantleech/sfdc

Symfony Fragment Documentation Converter
https://github.com/dantleech/sfdc

Last synced: 11 months ago
JSON representation

Symfony Fragment Documentation Converter

Awesome Lists containing this project

README

          

# Symfony Documentation XML Fragment Converter

This application converts well defined XML fragments into alternative formats,

e.g.

````bash
$ php sfdc.php test/Type/SfContainer3.xml
xml
---



sendmail

yaml
----

services:
my_mailer:
class: Acme\HelloBundle\Mailer
arguments:
- sendmail

php
---

use Symfony\Component\DependencyInjection\Reference;
// ...

$container->register('my_mailer', 'Acme\HelloBundle\Mailer')
->addArgument('sendmail')
;
````

There is also a web interface accessed via `index.php`: http://sfdc.dantleech.com.

## Converters

The application works by asking each class in a set of "Converter" classes if
they can convert the given XML fragment. Each converter returns a score
depending on how specific it is.