This project is a simple PHP API structure for use in quick and small projects without frameworks.
- Clone this repository
git clone https://github.com/pferreirafabricio/php-templateApi.git
- Enter in the project's folder:
cd php-templateApi
- Copy the .env.example file to .env:
cp .env.example .env
- Change the .env file with your configurations
- Build the app image:
docker compose build app
- Start the containers:
docker compose up -d
- Install project's dependencies:
docker compose exec app composer update
- Finally you can visit
127.0.0.1:8000/
from your browser ๐
- Fork this repository;
- Create a branch with your feature:
git checkout -b my-feature
- Commit your changes:
git commit -m 'feat: My new feature'
- Push your branch:
git push origin my-feature
This project is under the MIT license. Take a look at the LICENSE file for more details.