https://github.com/phacman/slim-api
Simple REST API based on Slim Skeleton
https://github.com/phacman/slim-api
alpine api php php-fpm php8 rest slim
Last synced: 24 days ago
JSON representation
Simple REST API based on Slim Skeleton
- Host: GitHub
- URL: https://github.com/phacman/slim-api
- Owner: phacman
- License: mit
- Created: 2024-07-25T11:00:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T03:08:25.000Z (about 2 years ago)
- Last Synced: 2024-12-25T17:09:53.905Z (over 1 year ago)
- Topics: alpine, api, php, php-fpm, php8, rest, slim
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slim API
Simple REST API based on Slim Skeleton 4.5.0.
Built image: `46.2MB`;
## Under the hood
- Vanilla Alpine 3.18.4
- NGINX
- PHP-FPM
- PHP 8.2.16
- Slim Skeleton 4.5.0
### PHP extension
- cgi-fcgi, Core, date, filter, hash, intl, json, ldap,
- libxml, mbstring, pcre, random, readline, Reflection,
- session, sodium, SPL, standard, xml, zlib
## Install
Just run this command to start
```shell
make d-up
```
## Endpoints
Execute http-file from `http` directory
- **index.http:** GET: `/`
- **get.http:** GET: `/get`
- **post.http:** POST: `/post`
- **php.http:** GET:
- php: version, extensions: `/php`
- phpinfo(): `/php/info`
- **users.http:** GET:
- persons list: `/users`
- one person: `/users/1`
## Analogs
- PHP Native: [micro-start-php](https://github.com/phacman/micro-start-php)
- Golang Native: [micro-start-go](https://github.com/phacman/micro-start-go)
- Node.js Vanilla: [micro-start-node](https://github.com/phacman/micro-start-node)
- Python Native: [micro-start-python](https://github.com/phacman/micro-start-python)