nzian / churchapp

This is very simple slim4 REST api application for church app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SLIM 4 - API FOR CHURCH APP

SLIM FRAMEWORK Slim PHP micro-framework.

Software License Build Status Coverage Status Packagist Version

πŸ’» TECHNOLOGIES USED:

The main technologies used in this project are:

  • PHP 8
  • Slim 4
  • MySQL
  • PHPUnit
  • dotenv
  • Docker
  • Docker Compose

βš™οΈ QUICK INSTALL:

Requirements:

  • Composer.
  • PHP >= 8.1
  • MySQL/MariaDB.
  • or Docker.

With Git:

You can create a new project running the following commands:

git clone git@github.com:nzian/churchapp.git [my-api-name]
cd [my-api-name]
composer test
composer start

Configure your connection to MySQL Server:

By default, the API uses a MySQL database.

You should check and edit this configuration in your .env file:

DB_HOST='127.0.0.1'
DB_NAME='yourMySqlDatabase'
DB_USER='yourMySqlUsername'
DB_PASS='yourMySqlPassword'
DB_PORT='3306'

Migrations

You can do your migration with bellow command run this for see available command

composer migration

You will see all available commands. You also can see the details of the command and with --help you can see more details of the command. Or if you have database tables definition already then either you use reverse migration process to generate migrations file or skip and ready to generate api end points.

πŸ“¦ DEPENDENCIES:

LIST OF REQUIRE DEPENDENCIES:

  • slim/slim: Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
  • slim/psr7: PSR-7 implementation for use with Slim 4.
  • pimple/pimple: A small PHP dependency injection container.
  • vlucas/phpdotenv: Loads environment variables from .env to getenv(), $_ENV and $_SERVER auto magically.
  • lulco/phoenix: Database migration with mysql and postgres database

LIST OF DEVELOPMENT DEPENDENCIES:

πŸ”– ENDPOINTS:

BY DEFAULT:

  • Hello: GET /

  • Health Check: GET /status

❀️ SUPPORT THE PROJECT

If you would like to support this project, you can:

  • Give a star to the repository ⭐ 😊

😎 AND THAT'S IT!

Now, go to build an excellent RESTful API.

About

This is very simple slim4 REST api application for church app.

License:MIT License


Languages

Language:PHP 99.9%Language:Dockerfile 0.1%