library vertabelo-propel
Converts Vertabelo xml file into Propel schema.xml file
vertabelo/vertabelo-propel
Converts Vertabelo xml file into Propel schema.xml file
- Tuesday, January 5, 2016
- by akozubek-epoint
- Repository
- 4 Watchers
- 6 Stars
- 146 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 2 Open issues
- 3 Versions
- 4 % Grown
VertabeloPropel
Converts Vertabelo XML file to Propel's schema.xml file., (*1)
Installation
VertabeloPropel uses [Composer] (https://getcomposer.org/) to manage project dependencies., (*2)
-
Create a file composer.json
:, (*3)
{
"require": {
"vertabelo/vertabelo-propel": "*@dev"
}
}
-
Run Composer., (*4)
composer install
This will download VertabeloPropel into the vendor
directory in your project directory., (*5)
Usage
- Create a database model using Vertabelo.
- Download the model as an XML file.
-
Run the vertabelo-propel.php script., (*6)
-
If you installed VertabeloPropel via Composer, run, (*7)
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, (*8)
```bash
./bin/vertabelo-propel.php -i model.xml -o schema.xml --database-name my_db --default-id-method native
```, (*9)
- 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., (*10)
vendor/bin/vertabelo-propel.php