sshilko / example-sdk-php
1.0.0
2025-07-06 19:09 UTC
Requires
- php: >=8.1
- composer-plugin-api: >=2.2.0
- composer-runtime-api: ^2
- ext-json: *
- ext-mbstring: *
- ext-zlib: *
- predis/predis: ^2.0.2
- psr/log: ^2.0 || ^3.0
- symfony/property-access: ^6
- symfony/property-info: ^6
- symfony/serializer: ^6
Requires (Dev)
- ext-ast: *
- ext-pcntl: *
- ext-posix: *
- ext-xdebug: *
- composer/composer: ^2
- pdepend/pdepend: ^2
- phan/phan: ^5
- phpmd/phpmd: ^2
- phpstan/phpstan: ^1
- phpunit/phpunit: ^9
- psalm/phar: *
- slevomat/coding-standard: 8.15.0
- squizlabs/php_codesniffer: ^3
This package is not auto-updated.
Last update: 2025-07-07 16:25:13 UTC
README
sshilko/example-sdk-php
This repository is example PHP project structure with premade CI/CD for building hiqh quality PHP code projects.
Features
- Setup is Linux/OSX compatible for x86/ARMv8/AppleSilicon CPUs
- Docker and Docker-Compose configurations
- Gitlab CI/CD pipelines for building project
- Docker Buildkit enabled
- Docker >= 26
- Alpine >=3.19
- PHPUnit 9
- PHP >=8.1
- IDE defaults for consistent styles
- Works out of the box with PHPStorm including PHPUnit tests
- Production quality PHP ini defaults
- Strict default configs for static analysis for 100% coverage: Psalm, PHPStan, Phan
- Domain-Driven Design project structure
- Pre-commit basic checks
- PHPUnit configuration with code coverage calculation (and CI/CD integration)
- Reporting all output formats Clover/Crap4j/Covertura/XML/HTML/Text/JUnit
- Badges auto generation
- PSR-4 namespaced source code and PHPUnit coverage
- CI/CD
- Build docker container and store in Gitlab Container registry
- Build composer package and store in Gitlab Package repository
- PHP Static Analysis (and CI/CD integration)
Installation
See CONTRIBUTING.md for details
composer require sshilko/example-sdk-php