-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the README.md #6
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
## RetroAchievements composer package | ||
# RetroAchievements composer package | ||
```sh | ||
/* RetroAchievements composer Package is a simple wrapper around the RetroAchievements.org API written in PHP | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be just a regular sentence (no bash syntax/comment) |
||
*/ | ||
``` | ||
|
||
# Open Source | ||
|
||
Install with: | ||
- RetroAchievements composer package is completely open sourced. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the bullet point |
||
|
||
`composer require joestrong/retroachievements` | ||
|
||
Use in a project: | ||
|
||
# Installation | ||
```sh | ||
$ composer require joestrong/retroachievements | ||
``` | ||
|
||
# Getting Started Usage | ||
|
||
```sh | ||
require_once('../vendor/autoload.php'); | ||
|
||
use JoeStrong\RetroAchievements\RetroAchievements; | ||
|
@@ -19,20 +30,22 @@ foreach ($users as $user) { | |
} | ||
``` | ||
|
||
## Methods | ||
### Methods | ||
|
||
```php | ||
Auth with the API | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make the descriptions in the PHP block comments |
||
|
||
`$ra = new RetroAchievements($username, $apiKey);` | ||
$ra = new RetroAchievements($username, $apiKey); | ||
|
||
Get the top 10 users | ||
|
||
`$ra->getTopTenUsers();` | ||
$ra->getTopTenUsers(); | ||
|
||
Get the consoles | ||
|
||
`$ra->getConsoles();` | ||
$ra->getConsoles(); | ||
|
||
Get games for console | ||
|
||
`$ra->getGamesForConsole($consoleId);` | ||
$ra->getGamesForConsole($consoleId); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the bash markup around the description?