https://github.com/fey/slim-php-application
https://github.com/fey/slim-php-application
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fey/slim-php-application
- Owner: fey
- Created: 2022-08-24T16:38:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T21:31:26.000Z (almost 4 years ago)
- Last Synced: 2025-07-26T12:46:37.383Z (about 1 year ago)
- Language: PHP
- Homepage: https://fey-slim-php-app.herokuapp.com/
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/fey/slim-php-application/actions/workflows/main.yml) [](https://codecov.io/gh/fey/slim-php-application)
# Slim Application
## Requirements
* PHP 8.1+
* PostgreSQL
## Local development
1. Run PostgreSQL database.
2. Install dependencies and prepare *.env*
```bash
make setup
```
3. Edit *.env* file and set variables for application
## Production
1. Create app on Heroku
2. Add PostgreSQL database
```bash
heroku addons:create heroku-postgresql:hobby-dev
```
3. Go to [rollbar.com](https://rollbar.com/), register and set token on Heroku
```bash
heroku config:set ROLLBAR_TOKEN=
```
4. Deploy application
```bash
make deploy
```