Skip to content

CentralAPI is a RESTful API structure written in PHP. It provides a robust framework for building and managing API endpoints. Easily integrate and extend for various applications.

Notifications You must be signed in to change notification settings

randhana/CentralAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CentralAPI

CentralAPI is a PHP-based API structure designed to facilitate efficient API development and management.


Table of Contents


Installation

  1. Clone the repository:

    git clone https://github.com/randhana/CentralAPI.git
    cd CentralAPI
  2. Install dependencies:

    composer install
  3. Set up your environment:

    Create a file called .env and fill in your database and other necessary configurations.

    nano .env

Configuration

  • Database Configuration:

    Update the .env file with your database credentials:

    DB_HOST=your_db_host
    DB_PORT=your_db_port
    DB_DATABASE=your_db_name
    DB_USERNAME=your_db_user
    DB_PASSWORD=your_db_password
  • Other Configurations:

    Add any other configuration details necessary for your API, such as API keys, authentication methods, etc.


Usage

  1. Starting the Server:

    php -S localhost:8000 -t public
  2. Accessing the API:

    Open your browser and navigate to http://localhost:8000.

  3. Making Requests:

    Use tools like curl or Postman to make requests to your API.


API Endpoints


Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.


About

CentralAPI is a RESTful API structure written in PHP. It provides a robust framework for building and managing API endpoints. Easily integrate and extend for various applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages