vertabelo / vertabelo-propel
Converts Vertabelo xml file into Propel schema.xml file
Requires
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.
-
Create a file
composer.json
:{ "require": { "vertabelo/vertabelo-propel": "*@dev" } }
-
Run Composer.
composer install
This will download VertabeloPropel into the vendor
directory in your project directory.
Usage
- Create a database model using Vertabelo.
- Download the model as an XML file.
- 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
- 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