Skip to content

🐘 A simple PHP API structure for use in quick and small projects without frameworks

License

Notifications You must be signed in to change notification settings

pferreirafabricio/php-template-api

Repository files navigation


PHP API structure 🐘

License CI Badge

πŸ“– About

This project is a simple PHP API structure for use in quick and small projects without frameworks.

🧱 This project was built with:

πŸƒβ€β™‚οΈ Installing and Running

  1. Clone this repository git clone https://github.com/pferreirafabricio/php-templateApi.git
  2. Enter in the project's folder: cd php-templateApi
  3. Copy the .env.example file to .env: cp .env.example .env
  4. Change the .env file with your configurations
  5. Build the app image: docker compose build app
  6. Start the containers: docker compose up -d
  7. Install project's dependencies: docker compose exec app composer update
  8. Finally you can visit 127.0.0.1:8000/ from your browser πŸ˜ƒ

♻️ Contribute

  1. Fork this repository;
  2. Create a branch with your feature: git checkout -b my-feature
  3. Commit your changes: git commit -m 'feat: My new feature'
  4. Push your branch: git push origin my-feature

πŸ“ƒ License

This project is under the MIT license. Take a look at the LICENSE file for more details.

About

🐘 A simple PHP API structure for use in quick and small projects without frameworks

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published