saygoweb / anorm
Another ORM for PHP
Installs: 489
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/saygoweb/anorm
Requires
- wp-cli/php-cli-tools: ^0.11.10
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^3.7
- dev-master
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.1
- v2.0.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.2
- v1.6.1
- v1.6.0
- V1.5.0
- v1.4.0
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- v0.9.2
- v0.9.1
- v0.9.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.1
- v0.1.0
- dev-fix/mango
- dev-release/v2.0.x
- dev-release/1.8.x
- dev-feature/join-optimize
- dev-fix/DefaultEncoding
- dev-feature/having
- dev-fix/alter
This package is auto-updated.
Last update: 2025-12-15 00:01:05 UTC
README
Yes, yet another ORM for PHP. This meets my needs for an ORM with the following characteristics:
- Works well with legacy databases.
- Provides (requires) a Model class which helps coding in IDEs.
- Creates and modifies the underlying database schema as required to match the Model.
Features
- Provides a tool 'anorm' for quickly generating models from existing tables.
- Maps between camelCase property names and under_score field names common in database schema.
- Makes CRUD operations extremely simple.
- Doesn't get in the way of complex queries.
Documentation
Documentation is available on the docs site.
Development
Quick Start
# Install dependencies composer install # Run tests composer test # Run tests with coverage composer test:coverage # Check code quality composer quality
Requirements
- PHP 7.4+ (tested on 7.4, 8.0, 8.1, 8.2, 8.3)
- MySQL/MariaDB
- Composer
Available Commands
composer test- Run full test suitecomposer test:quick- Run tests without coveragecomposer test:coverage- Run tests with HTML coverage reportcomposer test:ci- Run tests with clover coverage for CIcomposer cs:check- Check code style (PSR-12)composer cs:fix- Fix code style issuescomposer analyze- Run static analysis (PHPStan)composer quality- Run all quality checkscomposer ci- Run full CI suite (tests + quality)
See DEVELOPERS.md for detailed development instructions.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run
composer cito ensure all tests pass and code quality is maintained - Submit a pull request
All pull requests are automatically tested on multiple PHP versions with comprehensive code quality checks.