diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4a2d42f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +/.gitattributes export-ignore +/.github/ export-ignore +/.gitignore export-ignore +/phpcs.xml export-ignore +/renovate.json export-ignore +/.laminas-ci.json export-ignore +/phpunit.xml.dist export-ignore +/test/ export-ignore +/clover.xml export-ignore \ No newline at end of file diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..2f02e70 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,11 @@ +name: "Continuous Integration" + +on: + pull_request: + push: + branches: + tags: + +jobs: + ci: + uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f382b26 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/.phpcs-cache +/.phpunit.cache +/.phpunit.result.cache +/phpunit.xml +/vendor/ +/xdebug_filter.php +/clover.xml \ No newline at end of file diff --git a/.laminas-ci.json b/.laminas-ci.json new file mode 100644 index 0000000..13d383a --- /dev/null +++ b/.laminas-ci.json @@ -0,0 +1,19 @@ +{ + "ignore_php_platform_requirements": { + "8.1": true, + "8.2": true, + "8.3": true, + "8.4": true + }, + "exclude": [ + { + "name": "PHPUnit", + "php": "8.1" + }, + { + "name": "PHPUnit", + "php": "8.4", + "dependencies": "lowest" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 5919748..5f41cd7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # axleus-repo-template -Template repo for starting all new repo's + +This package provides MySQL support for Laminas Db. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..355e33c --- /dev/null +++ b/composer.json @@ -0,0 +1,80 @@ +{ + "name": "axleus/laminas-db-mysql", + "description": "MySQL support for laminas-db", + "license": "BSD-3-Clause", + "keywords": [ + "laminas", + "mysql", + "db" + ], + "homepage": "https://github.com/axleus/laminas-db-mysql/discussions", + "support": { + "issues": "https://github.com/alxeus/laminas-db-mysql/issues", + "source": "https://github.com/axleus/laminas-db-mysql", + "forum": "https://github.com/axleus/laminas-db-mysql/discussions" + }, + "minimum-stability": "dev", + "prefer-stable": true, + "config": { + "sort-packages": true, + "platform": { + "php": "8.1.99" + }, + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, + "extra": { + "laminas": { + "component": "Laminas\\Db\\Mysql", + "config-provider": "Laminas\\Db\\Mysql\\ConfigProvider" + } + }, + "require": { + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", + "axleus/laminas-db": "dev-3.0.x" + }, + "require-dev": { + "ext-mysqli": "*", + "ext-pdo_mysql": "*", + "laminas/laminas-coding-standard": "^3.0.1", + "laminas/laminas-eventmanager": "^3.6.0", + "laminas/laminas-hydrator": "^4.7", + "laminas/laminas-servicemanager": "^3.19.0", + "phpunit/phpunit": "^9.5.25", + "psalm/plugin-phpunit": "^0.19.2", + "vimeo/psalm": "^6.8.8" + }, + "suggest": { + "ext-mysqli": "Required for MySQLi support", + "ext-pdo_mysql": "Required for PDO MySQL support", + "laminas/laminas-servicemanager": "Laminas\\ServiceManager component" + }, + "autoload": { + "psr-4": { + "Laminas\\Db\\Mysql\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "LaminasTest\\Db\\Mysql\\": "test/unit/", + "LaminasIntegrationTest\\Db\\Mysql\\": "test/integration/" + } + }, + "scripts": { + "check": [ + "@cs-check", + "@test" + ], + "cs-check": "phpcs", + "cs-fix": "phpcbf", + "test": "phpunit --colors=always --testsuite \"unit test\"", + "test-coverage": "phpunit --colors=always --coverage-clover clover.xml", + "test-integration": "phpunit --colors=always --testsuite \"integration test\"", + "static-analysis": "psalm --shepherd --stats", + "upload-coverage": "coveralls -v" + }, + "conflict": { + "laminas/laminas-db": "*" + } +} diff --git a/coveralls.yml b/coveralls.yml new file mode 100644 index 0000000..bc71b62 --- /dev/null +++ b/coveralls.yml @@ -0,0 +1,2 @@ +coverage_clover: clover.xml +json_path: coveralls-upload.json diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..c79ac12 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,35 @@ + + + + + test/unit + + + test/integration + + + + + + + src + + + test/config + test/resource + + + \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..580e320 --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>axleus/.github:renovate-config" + ] +} \ No newline at end of file