mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-29 19:12:30 +01:00
Updated composer.json and README file
+ Changed the name of the project to "sugar-cube-client" + Updated the composer.json file + Updated the README file
This commit is contained in:
29
README.md
29
README.md
@ -1,16 +1,21 @@
|
|||||||
# Gitea for PHP
|
The Suger Cube Client, a Gitea API client for PHP
|
||||||
     
|
========
|
||||||
|
|
||||||
[Gitea](https://gitea.io) client library, in [PHP](https://secure.php.net).
|
The Suger Cube Client allows you to send and recieve data from Gitea's RESTful API using object-oriented PHP.
|
||||||
|
|
||||||
## Documentation
|
### How does it work?
|
||||||
- [User guide](https://dev.sabcomputer.com/gitea.php)
|
Under the hood, Suger Cube uses the [Guzzle Library](http://docs.guzzlephp.org/en/stable/) to make and send requests to [Gitea's RESTful API](https://try.gitea.io/api/swagger) routes. It then converts the returned JSON response data into PHP objects which you can use to easily query the data.
|
||||||
- [API reference](https://dev.sabcomputer.com/gitea.php/api)
|
|
||||||
|
|
||||||
## Development
|
### Real world Example
|
||||||
- [Git repository](https://github.com/sab-international/gitea.php)
|
To see how Sugar Cube can be used in a real world application please refer to [Acapella's code base](https://github.com/sitelease/acappella) (e.g. [line 39](https://github.com/sitelease/acappella/blob/1.0.0/src/Application/GiteaRepositoryManager.php#L39) of GiteaRepositoryManager.php).
|
||||||
- [Packagist package](https://packagist.org/packages/sab-international/gitea)
|
|
||||||
- [Submit an issue](https://github.com/sab-international/gitea.php/issues)
|
|
||||||
|
|
||||||
## License
|
### What's next?
|
||||||
[Gitea for PHP](https://dev.sabcomputer.com/gitea.php) is distributed under the MIT License.
|
- [ ] Add Example code to the README
|
||||||
|
- [ ] Create PHPUnit tests for each API requester
|
||||||
|
- [ ] Create more API requesters for Gitea's API routes
|
||||||
|
- [ ] Submit the Suger Cube composer package to Packagist
|
||||||
|
|
||||||
|
### Credits
|
||||||
|
* First thank you goes out to the folks over on the [Gitea.php](https://github.com/sab-international/gitea.php) project. Your Model and Push Event objects provided the foundation of this project.
|
||||||
|
* Next thank you goes to those who worked on [CompoLab](https://github.com/bricev/CompoLab). It was during the process of porting your great project to Gitea that we made this client.
|
||||||
|
* And last but not least, a big shout out to everyone who has contributed to [Gitea](https://github.com/go-gitea/gitea). Without your project there wouldn't be any API to make the client for ;)
|
||||||
|
|||||||
@ -1,26 +1,23 @@
|
|||||||
{
|
{
|
||||||
"description": "Gitea client library.",
|
"name": "sitelease/suger-cube-client",
|
||||||
"homepage": "https://github.com/mooror/gitea.php",
|
"description": "Suger Cube Client",
|
||||||
"license": "MIT",
|
"homepage": "https://github.com/sitelease/suger-cube-client",
|
||||||
"name": "sitelease/gitea-php",
|
|
||||||
"type": "library",
|
"type": "library",
|
||||||
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
{"email": "contact@sabcomputer.com", "name": "SAB International", "homepage": "http://www.sabcomputer.com"},
|
{"email": "contact@sabcomputer.com", "name": "SAB International (old)", "homepage": "http://www.sabcomputer.com"},
|
||||||
{"email": "cedric@belin.io", "name": "Cédric Belin", "homepage": "https://belin.io"},
|
{"email": "cedric@belin.io", "name": "Cédric Belin (old)", "homepage": "https://belin.io"},
|
||||||
{"email": "ben@sitelease.ca", "name": "Benjamin Blake", "homepage": "https://www.sitelease.ca"}
|
{"email": "ben@sitelease.ca", "name": "Benjamin Blake (current)", "homepage": "https://www.sitelease.ca"}
|
||||||
],
|
],
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {"Gitea\\": "src/"}
|
"psr-4": {"Gitea\\": "src/"}
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
|
||||||
"files": ["vendor/phpunit/phpunit/src/Framework/Assert/Functions.php"],
|
|
||||||
"psr-4": {"Gitea\\": "test/"}
|
|
||||||
},
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"api",
|
"api",
|
||||||
"client",
|
"client",
|
||||||
"git",
|
"git",
|
||||||
"gitea",
|
"gitea",
|
||||||
|
"suger",
|
||||||
"scm",
|
"scm",
|
||||||
"vcs"
|
"vcs"
|
||||||
],
|
],
|
||||||
@ -32,18 +29,11 @@
|
|||||||
"guzzlehttp/guzzle": "~6.0"
|
"guzzlehttp/guzzle": "~6.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"cedx/coveralls": "^10.1.0",
|
|
||||||
"consolidation/robo": "^1.4.9",
|
|
||||||
"henrikbjorn/lurker": "^1.2.0",
|
|
||||||
"phpstan/phpstan": "^0.11.5",
|
"phpstan/phpstan": "^0.11.5",
|
||||||
"phpunit/phpunit": "^8.1.2"
|
"phpunit/phpunit": "^8.1.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
|
||||||
"coverage": "robo coverage",
|
|
||||||
"test": "robo test"
|
|
||||||
},
|
|
||||||
"support": {
|
"support": {
|
||||||
"docs": "https://github.com/mooror/gitea.php",
|
"docs": "https://github.com/sitelease/suger-cube-client",
|
||||||
"issues": "https://github.com/mooror/gitea.php/issues"
|
"issues": "https://github.com/sitelease/suger-cube-client/issues"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user