2017 © Pedro Peláez
 

library xmlconf

Xml configuration utility

image

thapp/xmlconf

Xml configuration utility

  • Sunday, April 28, 2013
  • by iwyg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 51 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Bootstrap stuff from xml

Build Status, (*1)

Synopsis

This package lets you easily bootstrap data, objects, or whatever from an xml configuration file. The xml configuration file however must validate against a provided xsd schema., (*2)

Installation

Add thapp/xmlconf as a requirement to composer.json:, (*3)

{
    "require": {
        "thapp/xmlconf": "1.0.*"
    }
}

Then run composer update or composer install, (*4)

Next step is to tell laravel to load the serviceprovider. In app/config/app.php add, (*5)

  // ...
  'Thapp\XmlConf\XmlConfServiceProvider' 
  // ...

to the providers array., (*6)

Publish configuration

php artisan config:publish thapp/xmlconfig

Examples

This package provides an example directory that should get you started quickly., (*7)

For a first glimpse you may copy the storage/sections/config.xml that is included with this package to app/storage/sections/config.xml., (*8)

Next, create a new route. Somethig like this should do:, (*9)

Route::get('/examples', function () use ($app) {
    $SectionRepository = new Thapp\XmlConf\Examples\Sections\Repository($app['xmlconf.sections']);
    var_dump($SectionRepository);
});

General

File structure

- Vendor/
  - ReaderName/
    - Schema/
      - readername.xsd
    - ReaderNameSimpleXml.php
    - ReaderNameConfigReader.php

xml storage structure

- app/
  - storage/
    - ReaderName/
      - config.xml    

The Versions

28/04 2013

dev-master

9999999-dev

Xml configuration utility

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iwyg

28/04 2013

v1.0.0

1.0.0.0

Xml configuration utility

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar iwyg