ravimukti/slim3rest-starter

A Starter Project For REST

v1.0.1 2022-08-18 04:40 UTC

This package is auto-updated.

Last update: 2024-10-18 09:34:56 UTC


README

Project Structure

├── logs -> Folder Logs
│   ├── error
│   ├── info
├── public -> Folder Public
│   └── index.php
├── src -> Code Start Here
│   ├── app -> Main Code
│   │   ├── routes ->All API Endpoint in here
│   │   │   ├── api -> API Endpoint
│   │   │   └── scheduler -> Scheduler Endpoint
│   │   └── service -> Bussiness Logic Here
│   ├── dependencies.php -> DI Module
│   ├── library -> Non-Composer Library
│   ├── middleware.php -> Security Middleware
│   ├── routes.php -> Routes Example
│   └── settings.php -> Application Settings
├── templates -> View Templates
│   └── index.phtml
├── tests -> Unit Test
└── vendor -> Composer Library
├── composer.json
├── composer.lock
├── docker-compose.yml
├── README.md

How To Install

composer create-project ravimukti/slim3rest-starter your-project-name --stability=dev

API Path Pattern

Pattern -> /channel/product/version/module/action

/channel/shopee/v1/order/pull-all

More about REST API best practice

Running Application

composer start

Running Test

composer test

Application Specs

  • Slim 3 PHP