Skip to content
/ php-api-da Public template

Lightweight PHP API framework template with modular structure, easy routing for quick API development.

Notifications You must be signed in to change notification settings

hamdiituu/php-api-da

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP API Template

A lightweight and flexible PHP API framework template designed for rapid API development. This template offers a modular structure, easy routing, and simple configuration.

Features

  • Modular Architecture: Organize your application with a clear and maintainable structure.
  • Flexible Routing: Define and manage routes with ease.
  • Simple Configuration: Out-of-the-box configuration for quick setup.

Getting Started

Prerequisites

  • PHP 7.4 or higher
  • Composer

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/php-api-template.git
    
  2. Navigate to the project directory:

  cd php-api-template
  1. Install dependencies using Composer:
  composer install
  1. Run the PHP built-in server:
  composer start

Access the application at http://localhost:8080.

Usage

Routing

Define your API routes in the src/Http/Routers/ApiRouter.php file. Use the Router class to set up routes and handle requests.

Database Configuration

Configure your database settings directly in the application code or use a configuration file as needed.

API Validation

Use the Http/Validators directory to create validation classes for your API requests.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

About

Lightweight PHP API framework template with modular structure, easy routing for quick API development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages