Skip to content

An aplication to load a XML file into a mysql database throught doctrine2 using the symfony2

Notifications You must be signed in to change notification settings

eopnetto/xml_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xml_loader

An aplication to load a XML file into a mysql database throught doctrine2 using the symfony2.

Run the following commands:

Doctrine Configuration

Then set your mysql credentials in "xml_loader\app\config\config.yml" file:

doctrine:
    dbal:
        driver: pdo_mysql
        host: 'localhost'
        port: '3306'
        dbname: 'web_store'
        user: '<your_user>'
        password: '<your_password>'
        charset: UTF8

Finish executing the following commands:

  • php app/console doctrine:database:create
  • php app/console doctrine:schema:update --force
  • php app/console server:run

It's done! Now access the url http://localhost:8000/ (or other url where the server is running) and upload your xml file and the files will be processed and database will be populate.

Now you can access data from REST API url:

E.g.:

About

An aplication to load a XML file into a mysql database throught doctrine2 using the symfony2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published