CentralAPI is a PHP-based API structure designed to facilitate efficient API development and management.
-
Clone the repository:
git clone https://github.com/randhana/CentralAPI.git cd CentralAPI
-
Install dependencies:
composer install
-
Set up your environment:
Create a file called
.env
and fill in your database and other necessary configurations.nano .env
-
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.
-
Starting the Server:
php -S localhost:8000 -t public
-
Accessing the API:
Open your browser and navigate to
http://localhost:8000
. -
Making Requests:
Use tools like
curl
or Postman to make requests to your API.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.