Files
camelia-orm/composer.json
T
dgarcia f9010e2c63
Tests / PHP 8.3 (push) Failing after 3m42s
Tests / PHP 8.4 (push) Failing after 2m31s
test: split unit and integration suites and add coverage config
- 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

77 lines
2.0 KiB
JSON

{
"name": "camelia/orm",
"description": "Lightweight attribute-mapped Active Record ORM for MariaDB/MySQL over PDO.",
"type": "library",
"license": "MIT",
"keywords": ["orm", "activerecord", "pdo", "mysql", "mariadb"],
"authors": [
{
"name": "Dario Garcia",
"email": "dario61081@gmail.com"
}
],
"require": {
"php": ">=8.3",
"ext-mbstring": "*",
"ext-pdo": "*",
"psr/log": "^3.0"
},
"require-dev": {
"carthage-software/mago": "^1.60",
"phpstan/phpstan": "^1.11",
"phpunit/phpunit": "^10.5 || ^11.0"
},
"suggest": {
"brick/math": "Support for BigDecimal-mapped properties"
},
"autoload": {
"psr-4": {
"Camelia\\Orm\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Camelia\\Orm\\Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit --configuration phpunit.xml.dist",
"test:integration": "phpunit --configuration phpunit.integration.xml.dist",
"coverage": "phpunit --configuration phpunit.coverage.xml.dist --coverage-text",
"fmt": "mago fmt",
"fmt:check": "mago fmt --check",
"lint": "mago lint",
"analyze": "mago analyze",
"phpstan": "php -d memory_limit=1G vendor/bin/phpstan analyse --configuration phpstan.neon --no-progress",
"check": [
"@fmt:check",
"@lint",
"@analyze",
"@phpstan",
"@test"
]
},
"config": {
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true,
"archive": {
"exclude": [
"/tests",
"/mago-baseline.toml",
"/mago.toml",
"/phpstan.neon",
"/phpunit.integration.xml.dist",
"/phpunit.xml.dist",
"/AGENTS.md",
"/.gitignore"
]
},
"extra": {
"branch-alias": {
"dev-main": "1.0.x-dev"
}
}
}