Download the PHP package benatespina/stack-exchange-api-client without Composer
On this page you can find all versions of the php package benatespina/stack-exchange-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download benatespina/stack-exchange-api-client
More information about benatespina/stack-exchange-api-client
Files in benatespina/stack-exchange-api-client
Package stack-exchange-api-client
Short Description StackExchange v2.2 API client
License MIT
Homepage https://github.com/benatespina/StackExchangeApiClient
Informations about the package stack-exchange-api-client
Stack Exchange v2.2 API Client
PHP library for interacting with the Stack Exchange's version 2.2 REST API.
Requirements
PHP >= 7.1
Installation
The easiest way to install this bundle is using Composer
Usage
If you check out the API documentation, you will see that there are some calls that do not need authentication, but nevertheless there are other calls that need it so, this library allows to instantiate StackExchange client with or without Authentication. Furthermore there two ways to use this library.
Default usage
Full customized usage
Current status
The API has many methods, so the calls' implementation status are separated by type in the following files:
- Access Tokens
- Answers
- Badges
- Comments
- Errors
- Events
- Filters
- Flag Options
- Inbox Items
- Network Users
- Merge History
- Network Activity
- Notifications
- Posts
- Privileges
- Questions
- Question Timelines
- Reputation
- Reputation History
- Revisions
- Search Excerpts
- Sites
- Suggested Edits
- Tags
- Tag Scores
- Tag Synonyms
- Tag Wikis
- Top Tags
- Users
- User Timeline
- Write Permissions
Tests
This bundle is completely tested by PHPSpec, SpecBDD framework for PHP.
Run the following command to launch tests:
Contributing
This bundle follows PHP coding standards, so pull requests need to execute the Fabien Potencier's PHP-CS-Fixer. Furthermore, if the PR creates some not-PHP file remember that you have to put the license header manually. In order to simplify we provide a Composer script that wraps all the commands related with this process.
There is also a policy for contributing to this bundle. Pull requests must be explained step by step to make the review process easy in order to accept and merge them. New methods or code improvements must come paired with PHPSpec tests.
Credits
This library is created by:
@benatespina - [email protected]