Skip to content

base deps #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.phpcs-cache
/.phpunit.cache
/.phpunit.result.cache
/phpunit.xml
/vendor/
/xdebug_filter.php
/clover.xml
19 changes: 19 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# axleus-repo-template
Template repo for starting all new repo's

This package provides MySQL support for Laminas Db.
80 changes: 80 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": "*"
}
}
2 changes: 2 additions & 0 deletions coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
35 changes: 35 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.4/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache"
requireCoverageMetadata="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnSkippedTests="true"
failOnNotice="true"
failOnDeprecation="true"
failOnWarning="true">
<testsuites>
<testsuite name="unit">
<directory>test/unit</directory>
</testsuite>
<testsuite name="integration">
<directory>test/integration</directory>
</testsuite>
</testsuites>
<coverage pathCoverage="false" disableCodeCoverageIgnore="true">
</coverage>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">test/config</directory>
<directory suffix=".php">test/resource</directory>
</exclude>
</source>
</phpunit>
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>axleus/.github:renovate-config"
]
}
Loading