vertabelo/vertabelo-propel

Converts Vertabelo xml file into Propel schema.xml file

v0.5.0 2014-11-27 14:00 UTC

This package is not auto-updated.

Last update: 2024-12-21 17:12:11 UTC


README

Converts Vertabelo XML file to Propel's schema.xml file.

Installation

VertabeloPropel uses [Composer] (https://getcomposer.org/) to manage project dependencies.

  1. Create a file composer.json:

    {
       "require": {
          "vertabelo/vertabelo-propel": "*@dev"
       }
    }
  2. Run Composer.

    composer install

This will download VertabeloPropel into the vendor directory in your project directory.

Usage

  1. Create a database model using Vertabelo.
  2. Download the model as an XML file.
  3. Run the vertabelo-propel.php script.
  • If you installed VertabeloPropel via Composer, run

    ```bash
    

    vendor/bin/vertabelo-propel.php -i model.xml -o schema.xml --database-name my_db --default-id-method native

    
    
  • If you cloned the GitHub repository, run

    ```bash
    

    ./bin/vertabelo-propel.php -i model.xml -o schema.xml --database-name my_db --default-id-method native

    
    
  1. Your Propel's schema.xml file is generated. Proceed with Propel as usual.

Getting help

Run the script without any arguments, to see the list of available options.

vendor/bin/vertabelo-propel.php