https://github.com/compscidr/hello-php
Minimal setup with composer, php unit, etc
https://github.com/compscidr/hello-php
Last synced: about 2 months ago
JSON representation
Minimal setup with composer, php unit, etc
- Host: GitHub
- URL: https://github.com/compscidr/hello-php
- Owner: compscidr
- Created: 2024-01-17T20:53:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-21T17:14:34.000Z (7 months ago)
- Last Synced: 2025-11-21T19:14:24.880Z (7 months ago)
- Language: PHP
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hello-php
[](https://codecov.io/gh/compscidr/hello-php)
Minimal setup with:
- composer
- php unit
- code cov
- gh actions
- secrets via .env
## local setup:
- requires php >= 8.3
- composer: `wget https://raw.githubusercontent.com/composer/getcomposer.org/f3108f64b4e1c1ce6eb462b159956461592b3e3e/web/installer -O - -q | php -- --quiet`
- requires `php-dev`, `php-pear`
- requires pcov: `sudo pecl install pcov`
- copy the `sample.env` to `.env`
## Resources
- https://www.hostinger.com/tutorials/how-to-install-composer
- https://www.frobiovox.com/posts/2016/08/16/basic-hello-world-with-composer-and-php.html
- https://phpunit.de/getting-started/phpunit-10.html
- https://github.com/codecov/example-php/tree/main
- https://dev.to/swashata/setup-php-pcov-for-5-times-faster-phpunit-code-coverage-3d9c
- https://www.codementor.io/@ccornutt/keeping-credentials-secure-in-php-kvcbrk55z