Added the project settings

This commit is contained in:
Cédric Belin
2018-11-01 23:52:46 +01:00
parent 422c90e5db
commit b6f46942e2
5 changed files with 90 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Gitea for PHP
![Runtime](https://img.shields.io/badge/php-%3E%3D7.2-brightgreen.svg) ![Release](https://img.shields.io/packagist/v/sab-international/gitea.svg) ![License](https://img.shields.io/packagist/l/sab-international/gitea.svg) ![Downloads](https://img.shields.io/packagist/dt/sab-international/gitea.svg) ![Coverage](https://coveralls.io/repos/github/sab-international/gitea.php/badge.svg) ![Build](https://travis-ci.com/sab-international/gitea.php.svg)
Gitea client library, in [PHP](https://secure.php.net).
[Gitea](https://gitea.io) client library, in [PHP](https://secure.php.net).
## Resources
- [Documentation](https://github.com/sab-international/gitea.php/wiki)

50
composer.json Normal file
View File

@ -0,0 +1,50 @@
{
"description": "Gitea client library.",
"homepage": "https://github.com/sab-international/gitea.php",
"license": "MIT",
"name": "sab-international/gitea",
"type": "library",
"authors": [{
"email": "contact@sabcomputer.com",
"name": "SAB International"
}],
"autoload": {
"psr-4": {"Gitea\\": "lib/"}
},
"autoload-dev": {
"files": ["vendor/phpunit/phpunit/src/Framework/Assert/Functions.php"],
"psr-4": {"Gitea\\": "test/"}
},
"config": {
"optimize-autoloader": true
},
"keywords": [
"api",
"client",
"git",
"gitea",
"scm",
"vcs"
],
"require": {
"php": ">=7.2.0",
"ext-curl": "*",
"cedx/enum": "^7.3.0",
"guzzlehttp/guzzle": "^6.3.3"
},
"require-dev": {
"cedx/coveralls": "^9.0.1",
"consolidation/robo": "^1.3.1",
"henrikbjorn/lurker": "^1.2.0",
"phpstan/phpstan": "^0.10.5",
"phpunit/phpunit": "^7.4.3"
},
"scripts": {
"coverage": "robo coverage",
"test": "robo test"
},
"support": {
"docs": "https://github.com/sab-international/gitea.php/wiki",
"issues": "https://github.com/sab-international/gitea.php/issues"
}
}

18
phpdoc.xml Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<phpdoc>
<title>Gitea for PHP</title>
<parser>
<target>var</target>
</parser>
<transformer>
<target>doc/api</target>
</transformer>
<transformations>
<template name="responsive"/>
</transformations>
<files>
<directory>lib</directory>
</files>
</phpdoc>

3
phpstan.neon Normal file
View File

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

18
phpunit.xml Normal file
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>test</directory>
</testsuite>
</testsuites>
</phpunit>