A simple command line tool to parse xml files and save into a database of your choice (sqlite, mysql, postgres, mongodb).
You can follow these steps to get started with the project.
git clone git@github.com:cashewcodes9/quickCLI.git
composer install
cp .env.example .env
php artisan migrate
The first argument of the command is path to the xml file. There is an option to select the database you want to save your xml data in. The default database is sqlite
php quick-cli parse:xml <path-to-xml-file> --db=<database-name>
If you are using sqlite database, you can run
php quick-cli parse:xml <path-to-xml-file>
A php testing framework Pest is being used to test the application. To run the tests, run the following command:
./vendor/bin/phpunit
PhpStan is a static analysis tool that helps to find bugs in the code. To run the static analysis, run the following command:
vendor/bin/phpstan analyse app config database tests --memory-limit 500M
You can list all the available commands with:
php quick-cli list
Laravel Zero is an open-source software licensed under the MIT license.