alexssssss / ormmodel
Alexssssss ormmodel
v15.1.3
2024-10-01 17:21 UTC
Requires
- php: >=7.1.0|>=8.2.0
- aura/sql: ~2.4|~3.0
- doctrine/annotations: ~1.0
- doctrine/cache: ~1.0
- egulias/email-validator: ^1.2.8|~2.0
- symfony/config: ~3.4|~4.0|~5.0
- symfony/intl: ~3.4|~4.0|~5.0
- symfony/validator: ~4.0|~5.0
- symfony/yaml: ~3.4|~4.0|~5.0
Requires (Dev)
- pdepend/pdepend: *
- phing/phing: *
- phploc/phploc: *
- phpmd/phpmd: *
- phpunit/phpunit: *
- psr/container: ^1.0
- psr/log: ^1.0
- sebastian/phpcpd: *
- squizlabs/php_codesniffer: *
Suggests
- rdlowrey/auryn: Can be used to to autowire the services, version ~1.4
- dev-master
- v15.1.3
- v15.1.2
- v15.1.1
- v15.1.0
- v15.0.7
- v15.0.6
- v15.0.5
- v15.0.4
- v15.0.3
- v15.0.2
- v15.0.1
- v15.0.0
- v14.12.3
- v14.12.2
- v14.12.1
- v14.12.0
- v14.11.1
- v14.11.0
- v14.10.1
- v14.10.0
- v14.9.2
- v14.9.1
- v14.9.0
- v14.8.1
- v14.8.0
- v14.7.4
- v14.7.3
- v14.7.2
- v14.7.1
- v14.7.0
- v14.6.2
- v14.6.1
- v14.6.0
- v14.5.0
- v14.4.0
- v14.3.0
- v14.2.1
- v14.2.0
- v14.1.0
- v14.0.0
- v13.12.4
- v13.12.3
- v13.12.2
- v13.12.1
- v13.12.0
- v13.11.1
- v13.11.0
- v13.10.0
- v13.9.1
- v13.9.0
- v13.8.5
- v13.8.4
- v13.8.3
- v13.8.2
- v13.8.1
- v13.8.0
- v13.7.0
- v13.6.2
- v13.6.1
- v13.6.0
- v13.5.4
- v13.5.3
- v13.5.2
- v13.5.1
- v13.5.0
- v13.4.1
- v13.4.0
- v13.3.1
- v13.3.0
- v13.2.3
- v13.2.2
- v13.2.1
- v13.2.0
- v13.1.5
- v13.1.4
- v13.1.3
- v13.1.2
- v13.1.1
- v13.1.0
- v13.0.0
- v12.10.1
- v12.10.0
- v12.9.1
- v12.9.0
- v12.8.4
- v12.8.3
- v12.8.2
- v12.8.1
- v12.8.0
- v12.7.8
- v12.7.7
- v12.7.6
- v12.7.5
- v12.7.4
- v12.7.3
- v12.7.2
- v12.7.1
- v12.7.0
- v12.6.2
- v12.6.1
- v12.6.0
- v12.5.3
- v12.5.2
- v12.5.1
- v12.5.0
- v12.4.0
- v12.3.1
- v12.3.0
- v12.2.5
- v12.2.4
- v12.2.3
- v12.2.2
- v12.2.1
- v12.2.0
- v12.1.3
- v12.1.2
- v12.1.1
- v12.1.0
- v12.0.2
- v12.0.1
- v12.0.0
- v11.9.3
- v11.9.2
- v11.9.1
- v11.9.0
- v11.9.0-beta1
- v11.8.3
- v11.8.2
- v11.8.1
- v11.8.0
- v11.7.1
- v11.7.0
- v11.6.6
- v11.6.5
- v11.6.4
- v11.6.3
- v11.6.2
- v11.6.1
- v11.6.0
- v11.5.0
- v11.4.1
- v11.4.0
- v11.3.0
- v11.2.2
- v11.2.1
- v11.2.0
- v11.1.6
- v11.1.5
- v11.1.4
- v11.1.3
- v11.1.2
- v11.1.1
- v11.1.0
- v11.0.6
- v11.0.5
- v11.0.4
- v11.0.3
- v11.0.2
- v11.0.1
- v11.0.0
- v10.1.3
- v10.1.2
- v10.1.1
- v10.1.0
- v10.0.5
- v10.0.4
- v10.0.3
- v10.0.2
- v10.0.1
- v10.0.0
- v9.19.0
- v9.18.4
- v9.18.3
- v9.18.2
- v9.18.1
- v9.18.0
- v9.17.4
- v9.17.3
- v9.17.2
- v9.17.1
- v9.17.0
- v9.16.0
- v9.15.1
- v9.15.0
- v9.14.2
- v9.14.1
- v9.14.0
- v9.13.4
- v9.12.3
- v9.12.2
- v9.12.1
- v9.12.0
- v9.11.1
- v9.11.0
- v9.10.0
- v9.9.2
- v9.9.1
- v9.9.0
- v9.8.1
- v9.8.0
- v9.7.2
- v9.7.1
- v9.7.0
- v9.6.0
- v9.5.2
- v9.5.1
- v9.5.0
- v9.4.9
- v9.4.8
- v9.4.7
- v9.4.6
- v9.4.5
- v9.4.4
- v9.4.3
- v9.4.2
- v9.4.1
- v9.4.0
- v9.3.10
- v9.3.9
- v9.2.1
- v9.2.0
- v9.1.5
- v9.1.4
- v9.1.3
- v9.1.2
- v9.1.1
- v9.1.0
- v9.0.1
- v9.0.0
- v8.2.1
- v8.2.0
- v8.1.2
- v8.1.1
- v8.1.0
- v8.0.1
- v8.0.0
- v7.0.2
- v7.0.1
- v7.0.0
- v6.0.2
- v6.0.1
- v6.0.0
- v5.5.1
- v5.5.0
- v5.4.1
- v5.4.0
- v5.3.1
- v5.3.0
- v5.2.0
- v5.1.1
- v5.1.0
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.4.3
- v4.4.2
- v4.4.1
- v4.3.1
- v4.3.0
- v4.2.0
- v4.1.0
- v4.0.2
- v4.0.1
- v4.0.0
- v3.1.0
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- v0.13.0
- dev-fix-additional-fields-null
- dev-translatorInterface
- dev-transInterfaceAndProfiler
- dev-dirkkuijer-master-patch-76285
- dev-translator
- dev-query-opti-and-sort
- dev-fixed-slave
- dev-translatorInterfaceFix
- dev-documentatie
- dev-configchanges
- dev-master-v12
- dev-dateTimeNullFields
- dev-master-v11
This package is auto-updated.
Last update: 2024-12-01 00:10:27 UTC
README
Branch | GitLab CI Status |
---|---|
Master |
Install
config.php
<?php
define('DB_SERVER', '');
define('DB_USERNAME', '');
define('DB_PASSWORD', '');
db.php
<?php
/* @var $injector \Auryn\Injector */
$injector->alias('Aura\Sql\ExtendedPdoInterface', 'Aura\Sql\ExtendedPdo');
$injector->share('Aura\Sql\ExtendedPdoInterface');
$injector->share('Aura\Sql\ExtendedPdo');
$injector->share('Framework\PdoDatabase');
$injector->alias('Framework\DatabaseInterface', 'Framework\PdoDatabase');
$injector->share('Framework\Database');
if (defined('DB_SERVER') && defined('DB_USERNAME') && defined('DB_PASSWORD') && defined('DB_DATABASE')) {
$injector->delegate('Aura\Sql\ExtendedPdo', function () {
$connection = new \Aura\Sql\ExtendedPdo('mysql:host=' . DB_SERVER . ';dbname=' . DB_DATABASE, DB_USERNAME, DB_PASSWORD);
$connection->exec("SET NAMES 'utf8'");
return $connection;
});
}
ormmodel.yml
paths:
bootstrapFile: %%ORMMODEL_CONFIG_DIR%%/bootstrap.php
services: %%ORMMODEL_CONFIG_DIR%%/app/models/Service
modelNamespace: Model
index.php
<?php
require_once __DIR__.'/vender/autoload.php';
require_once __DIR__.'/config.php';
require_once __DIR__.'/dv.php';
$carModel = $injector->make('\Model\Service\Car');
$carModel->get();