Browse Source

Added the project settings

tags/v1.0.0
Cédric Belin 1 year ago
parent
commit
cec173332b
6 changed files with 89 additions and 0 deletions
  1. +6
    -0
      .semver
  2. +44
    -0
      composer.json
  3. +18
    -0
      etc/phpdoc.xml
  4. +3
    -0
      etc/phpstan.neon
  5. +18
    -0
      etc/phpunit.xml
  6. +0
    -0
     

+ 6
- 0
.semver View File

@@ -0,0 +1,6 @@
---
:major: 1
:minor: 0
:patch: 0
:special: ''
:metadata: ''

+ 44
- 0
composer.json View File

@@ -0,0 +1,44 @@
{
"description": "Open whatever you want, such as URLs, files or executables, regardless of the platform you use.",
"homepage": "https://dev.belin.io/open.php",
"license": "MIT",
"name": "cedx/open",
"type": "library",
"authors": [
{"email": "cedric@belin.io", "homepage": "https://belin.io", "name": "Cédric Belin"}
],
"autoload": {
"psr-4": {"Open\\": "lib/"}
},
"autoload-dev": {
"psr-4": {"Open\\": "test/"}
},
"config": {
"optimize-autoloader": true
},
"keywords": [
"executable",
"file",
"launcher",
"open",
"start",
"url"
],
"require": {
"php": ">=7.2.0"
},
"require-dev": {
"cedx/phpunit-expect": "^0.8.0",
"consolidation/robo": "^1.4.10",
"henrikbjorn/lurker": "^1.2.0",
"phpstan/phpstan": "^0.11.16"
},
"scripts": {
"coverage": "robo coverage",
"test": "robo test"
},
"support": {
"docs": "https://dev.belin.io/open.php/api",
"issues": "https://github.com/cedx/open.php/issues"
}
}

+ 18
- 0
etc/phpdoc.xml View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<phpdocumentor>
<title>Open.php</title>

<parser>
<target>../var</target>
</parser>
<transformer>
<target>../doc/api</target>
</transformer>
<transformations>
<template name="responsive"/>
</transformations>

<files>
<directory>../lib</directory>
</files>
</phpdocumentor>

+ 3
- 0
etc/phpstan.neon View File

@@ -0,0 +1,3 @@
parameters:
level: max
paths: [lib, test]

+ 18
- 0
etc/phpunit.xml View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<phpunit bootstrap="../vendor/autoload.php" cacheResult="false">
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../lib</directory>
</whitelist>
</filter>

<logging>
<log type="coverage-clover" target="../var/coverage.xml"/>
</logging>

<testsuites>
<testsuite name="all">
<directory suffix="Test.php">../test</directory>
</testsuite>
</testsuites>
</phpunit>

+ 0
- 0
View File


Loading…
Cancel
Save