Simple Application and API modeling to work with PostgresQL written in PHP.
This library uses Composer to manage its dependencies. So, before using it, make sure you have it installed in your machine. Once you have done this, you will be able to pull this library in by typing the following command in your terminal.
git clone git@github.com:gocanto/psql-api.gitAfter you have done this, you will have to populate your environment variables in order for you to connect to your testing server endpoints. You can achieve this by typing the following command in your terminal within your project root folder.
cp .env.example .env
Once you have the newly created file open in your proffered IDE, you can update your database connection values alongside with your app environment mode.
Finally, you might be able to start testing the API by hitting the available endpoints. In order for you to do so, you will need a restfull client to facilitate these tasks, or you can go all in and query from your CLI.
- Create cars.
- List all cars.
- Show a given car.
- Update a given car.
- Delete a given car.
See more
Please feel free to fork this package and contribute by submitting a pull request to enhance its functionality.
The MIT License (MIT). Please see License File for more information.
Why not star the GitHub repo and share the link for this repository on Twitter?
Don't forget to follow me on twitter!
Thanks!