From b6f46942e2f900ba38bf29547499e1a29fdc3ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Thu, 1 Nov 2018 23:52:46 +0100 Subject: [PATCH] Added the project settings --- README.md | 2 +- composer.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ phpdoc.xml | 18 ++++++++++++++++++ phpstan.neon | 3 +++ phpunit.xml | 18 ++++++++++++++++++ 5 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 composer.json create mode 100644 phpdoc.xml create mode 100644 phpstan.neon create mode 100644 phpunit.xml diff --git a/README.md b/README.md index 63b3d41..d4be649 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..c440ddb --- /dev/null +++ b/composer.json @@ -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" + } +} diff --git a/phpdoc.xml b/phpdoc.xml new file mode 100644 index 0000000..fae9b05 --- /dev/null +++ b/phpdoc.xml @@ -0,0 +1,18 @@ + + + Gitea for PHP + + + var + + + doc/api + + +