Skip to content

Commit e2e619d

Browse files
authored
Merge pull request #1 from axleus/initial-repo-setup
base deps
2 parents 786a57a + 16e4455 commit e2e619d

File tree

9 files changed

+171
-1
lines changed

9 files changed

+171
-1
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/.gitattributes export-ignore
2+
/.github/ export-ignore
3+
/.gitignore export-ignore
4+
/phpcs.xml export-ignore
5+
/renovate.json export-ignore
6+
/.laminas-ci.json export-ignore
7+
/phpunit.xml.dist export-ignore
8+
/test/ export-ignore
9+
/clover.xml export-ignore
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
tags:
8+
9+
jobs:
10+
ci:
11+
uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.phpcs-cache
2+
/.phpunit.cache
3+
/.phpunit.result.cache
4+
/phpunit.xml
5+
/vendor/
6+
/xdebug_filter.php
7+
/clover.xml

.laminas-ci.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"ignore_php_platform_requirements": {
3+
"8.1": true,
4+
"8.2": true,
5+
"8.3": true,
6+
"8.4": true
7+
},
8+
"exclude": [
9+
{
10+
"name": "PHPUnit",
11+
"php": "8.1"
12+
},
13+
{
14+
"name": "PHPUnit",
15+
"php": "8.4",
16+
"dependencies": "lowest"
17+
}
18+
]
19+
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# axleus-repo-template
2-
Template repo for starting all new repo's
2+
3+
This package provides MySQL support for Laminas Db.

composer.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"name": "axleus/laminas-db-mysql",
3+
"description": "MySQL support for laminas-db",
4+
"license": "BSD-3-Clause",
5+
"keywords": [
6+
"laminas",
7+
"mysql",
8+
"db"
9+
],
10+
"homepage": "https://github.com/axleus/laminas-db-mysql/discussions",
11+
"support": {
12+
"issues": "https://github.com/alxeus/laminas-db-mysql/issues",
13+
"source": "https://github.com/axleus/laminas-db-mysql",
14+
"forum": "https://github.com/axleus/laminas-db-mysql/discussions"
15+
},
16+
"minimum-stability": "dev",
17+
"prefer-stable": true,
18+
"config": {
19+
"sort-packages": true,
20+
"platform": {
21+
"php": "8.1.99"
22+
},
23+
"allow-plugins": {
24+
"dealerdirect/phpcodesniffer-composer-installer": true
25+
}
26+
},
27+
"extra": {
28+
"laminas": {
29+
"component": "Laminas\\Db\\Mysql",
30+
"config-provider": "Laminas\\Db\\Mysql\\ConfigProvider"
31+
}
32+
},
33+
"require": {
34+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
35+
"axleus/laminas-db": "dev-3.0.x"
36+
},
37+
"require-dev": {
38+
"ext-mysqli": "*",
39+
"ext-pdo_mysql": "*",
40+
"laminas/laminas-coding-standard": "^3.0.1",
41+
"laminas/laminas-eventmanager": "^3.6.0",
42+
"laminas/laminas-hydrator": "^4.7",
43+
"laminas/laminas-servicemanager": "^3.19.0",
44+
"phpunit/phpunit": "^9.5.25",
45+
"psalm/plugin-phpunit": "^0.19.2",
46+
"vimeo/psalm": "^6.8.8"
47+
},
48+
"suggest": {
49+
"ext-mysqli": "Required for MySQLi support",
50+
"ext-pdo_mysql": "Required for PDO MySQL support",
51+
"laminas/laminas-servicemanager": "Laminas\\ServiceManager component"
52+
},
53+
"autoload": {
54+
"psr-4": {
55+
"Laminas\\Db\\Mysql\\": "src/"
56+
}
57+
},
58+
"autoload-dev": {
59+
"psr-4": {
60+
"LaminasTest\\Db\\Mysql\\": "test/unit/",
61+
"LaminasIntegrationTest\\Db\\Mysql\\": "test/integration/"
62+
}
63+
},
64+
"scripts": {
65+
"check": [
66+
"@cs-check",
67+
"@test"
68+
],
69+
"cs-check": "phpcs",
70+
"cs-fix": "phpcbf",
71+
"test": "phpunit --colors=always --testsuite \"unit test\"",
72+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
73+
"test-integration": "phpunit --colors=always --testsuite \"integration test\"",
74+
"static-analysis": "psalm --shepherd --stats",
75+
"upload-coverage": "coveralls -v"
76+
},
77+
"conflict": {
78+
"laminas/laminas-db": "*"
79+
}
80+
}

coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage_clover: clover.xml
2+
json_path: coveralls-upload.json

phpunit.xml.dist

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.4/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
cacheDirectory=".phpunit.cache"
7+
requireCoverageMetadata="true"
8+
displayDetailsOnTestsThatTriggerWarnings="true"
9+
displayDetailsOnTestsThatTriggerNotices="true"
10+
displayDetailsOnTestsThatTriggerErrors="true"
11+
displayDetailsOnTestsThatTriggerDeprecations="true"
12+
displayDetailsOnSkippedTests="true"
13+
failOnNotice="true"
14+
failOnDeprecation="true"
15+
failOnWarning="true">
16+
<testsuites>
17+
<testsuite name="unit">
18+
<directory>test/unit</directory>
19+
</testsuite>
20+
<testsuite name="integration">
21+
<directory>test/integration</directory>
22+
</testsuite>
23+
</testsuites>
24+
<coverage pathCoverage="false" disableCodeCoverageIgnore="true">
25+
</coverage>
26+
<source>
27+
<include>
28+
<directory suffix=".php">src</directory>
29+
</include>
30+
<exclude>
31+
<directory suffix=".php">test/config</directory>
32+
<directory suffix=".php">test/resource</directory>
33+
</exclude>
34+
</source>
35+
</phpunit>

renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"local>axleus/.github:renovate-config"
5+
]
6+
}

0 commit comments

Comments
 (0)