https://github.com/rainmaker-9/slim4-skeleton
A skeleton application for Slim 4 framework with PHP-DI integration.
https://github.com/rainmaker-9/slim4-skeleton
php php-framework php-rest-api rest-api restful-api slim-framework slim4
Last synced: 8 months ago
JSON representation
A skeleton application for Slim 4 framework with PHP-DI integration.
- Host: GitHub
- URL: https://github.com/rainmaker-9/slim4-skeleton
- Owner: rainmaker-9
- Created: 2025-06-08T05:18:55.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-06-08T05:18:59.000Z (8 months ago)
- Last Synced: 2025-06-08T05:42:49.546Z (8 months ago)
- Topics: php, php-framework, php-rest-api, rest-api, restful-api, slim-framework, slim4
- Language: PHP
- Homepage: https://ravirajchougale.com
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Slim 4 Skeleton
A minimal [Slim Framework 4](https://www.slimframework.com/) starter application.
## Features
- PSR-7 HTTP message support
- PSR-15 middleware support
- Dependency Injection via PHP-DI
- Ready for RESTful APIs or web apps
## Requirements
- PHP 7.4 or higher
- [Composer](https://getcomposer.org/)
## Getting Started
### 1. Clone the repository
```bash
git clone https://github.com/rainmaker-9/slim4-skeleton.git
cd slim4-skeleton
```
### 2. Install dependencies
```bash
composer install
```
### 3. Run the application
Start the built-in PHP server:
```bash
php -S localhost:8080
```
Visit [http://localhost:8080](http://localhost:8080) in your browser.
## Project Structure
```
.
├── app/ # Application source code
├── bootstrap/ # Required Files for Containerization & bootstrapping the application
├── routes/ # For defining application routes
├── vendor/ # Composer dependencies
├── .env.example # For defining Environment Variables used by application
├── composer.json
└── README.md
```
## License
MIT