Commit Graph
6 Commits
Author SHA1 Message Date
dgarcia c15015d809 ci: use php container image instead of setup-php action
Tests / PHP 8.3 (push) Failing after 10m43s
Tests / PHP 8.4 (push) Failing after 11m18s
2026-11-15 10:38:44 -03:00
dgarcia 8040506736 chore: make export-ignore recursive and cover dev files
Tests / PHP 8.3 (push) Failing after 15s
Tests / PHP 8.4 (push) Failing after 10s
2026-11-15 10:24:50 -03:00
dgarcia f110c8a579 chore: release 1.0.0
Tests / PHP 8.3 (push) Failing after 11s
Tests / PHP 8.4 (push) Failing after 10s
1.0.0
2026-11-15 10:23:25 -03:00
dgarcia f9010e2c63 test: split unit and integration suites and add coverage config
Tests / PHP 8.3 (push) Failing after 3m42s
Tests / PHP 8.4 (push) Failing after 2m31s
- Create tests/Integration/ConnectionTest.php, skipped unless CAMELIA_TEST_HOST,
  CAMELIA_TEST_DATABASE and CAMELIA_TEST_USER are set, so composer test:integration
  no longer fails on a missing directory.
- 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.
- Align the README title with the package name and add Packagist and CI badges.
2026-11-15 10:21:11 -03:00
dgarcia 725bcfdaf4 chore: force LF line endings 2026-11-15 10:14:42 -03:00
dgarcia 66e93e3070 feat: initial commit of camelia/orm
Attribute-mapped Active Record ORM for MariaDB/MySQL over PDO.

- Attribute-driven metadata: TableName, PrimaryKey, AutoIncrement, Column,
  Guarded, Ignore, Required, Enum, Nullable, Length, Precision, Unique,
  UniqueGroup, Index, MaxLength.
- Relationship mapping: BelongsTo, HasOne, HasMany, BelongsToMany with
  batched eager loading and a 3-level depth limit.
- Orm entry point with fromArray, fromPdo, fromEnv and nested transactions.
- Immutable Query with Cond operators and GroupCond grouping.
- Repository read and write API, pagination, and typed exception hierarchy.
- Declares PHP >=8.3; Mago and PHPStan pin the parser to 8.3.
- MIT license.
2026-11-15 10:14:22 -03:00