Commit Graph
9 Commits
Author SHA1 Message Date
dgarcia fb6ac985fe chore: run composer check on pre-commit 2026-11-15 11:07:55 -03:00
dgarcia 93914a2b38 ci: install node for actions/checkout in the php container
Tests / PHP 8.4 (push) Failing after 3m17s
2026-11-15 11:01:06 -03:00
dgarcia 807992ecab refactor!: require PHP 8.4
Tests / PHP 8.4 (push) Failing after 1m26s
Drop support for PHP 8.3 and lower. The package now declares >=8.4, and CI runs
only on 8.4.

- composer.json: require php >=8.4.
- mago.toml: php-version = "8.4", matching the minimum supported version.
- phpstan.neon: phpVersion 80400.
- Upgrade phpstan/phpstan to ^2.3: 1.x cannot parse `new Foo()->bar()`, which the
  8.4 formatter now emits.
- Narrow ArrayGateway::count() to int, matching what the fixture actually returns.
- CI: single PHP 8.4 job using the php:8.4-cli container instead of setup-php,
  which failed with a TLS handshake timeout on the runner.

BREAKING CHANGE: PHP 8.4 is now required.
2026-11-15 10:58:17 -03:00
dgarcia a20762a715 ci: use php container image instead of setup-php action
Tests / PHP 8.3 (push) Failing after 1m20s
Tests / PHP 8.4 (push) Failing after 1m7s
2026-11-15 10:38:47 -03:00
dgarcia c586c2c16a chore: make export-ignore recursive and cover dev files
Tests / PHP 8.3 (push) Failing after 8s
Tests / PHP 8.4 (push) Failing after 6s
2026-11-15 10:24:58 -03:00
dgarcia 9416b68729 chore: release 1.0.0
Tests / PHP 8.3 (push) Failing after 11s
Tests / PHP 8.4 (push) Failing after 28s
1.0.0
2026-11-15 10:23:43 -03:00
dgarcia 9bfd039d50 test: add coverage config, CI workflow and changelog
Tests / PHP 8.3 (push) Failing after 8m19s
Tests / PHP 8.4 (push) Failing after 7m43s
- Move coverage reports to phpunit.coverage.xml.dist: a coverage driver is optional and
  failOnWarning would turn its absence into a failed gate.
- Add a composer coverage script and document the requirement.
- Exclude development-only files from the distribution archive via export-ignore.
- Add a Gitea Actions workflow running composer check on PHP 8.3 and 8.4.
- Add CHANGELOG.md following Keep a Changelog.
- Add Packagist and CI badges to the README.
2026-11-15 10:21:12 -03:00
dgarcia d879c9781e chore: force LF line endings 2026-11-15 10:14:42 -03:00
dgarcia 341d1bdc2c feat: initial commit of camelia/controllers
Framework-agnostic REST controller toolkit in vanilla PHP.

- Router with path parameters, 404 and 405 with an Allow header.
- Immutable Request, JsonRequest and Response; nothing is printed.
- CrudController over a ResourceGateway port the application implements.
- Composable Middleware/Pipeline chain.
- Security middlewares: BearerAuth, RequireRole, RateLimit, Cors.
- Transport middlewares: Logging, ContentNegotiation.
- Nine typed HTTP exceptions with snake_case JSON bodies.
- Declares PHP >=8.3 and no dependency on an ORM: ports are local.
- MIT license.
2026-11-15 10:14:27 -03:00