-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
783f79b
commit fc006bd
Showing
1 changed file
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,53 @@ | ||
## Overview | ||
|
||
Simple and easy to use library to work with Virgool. | ||
|
||
## What is virgool? | ||
|
||
ویرگول یک بستر خصوصی انتشار محتوا (Microblog) است. | ||
|
||
## Installation | ||
|
||
`composer require evokelektrique/virgool` | ||
Simply by running the `composer require evokelektrique/virgool` in your project folder. | ||
|
||
## Usage | ||
```php | ||
require_once __DIR__ . "/../vendor/autoload.php"; | ||
|
||
use Virgoolio\Virgool; | ||
|
||
$username = "virgool"; | ||
$virgool = new Virgool($username); | ||
$posts = $virgool->get_posts(); | ||
|
||
var_dump($posts); | ||
// array(10) { | ||
// [0]=> | ||
// array(4) { | ||
// ["title"]=> | ||
// string(55) "آدرس انتشارات خود را شخصی کنید" | ||
// ["summary"]=> | ||
// string(100) "آدرس انتشارات خود در ویرگول را به دامنهتان تغییر دهید" | ||
// ["metadata"]=> | ||
// array(2) { | ||
// [0]=> | ||
// string(16) "۴ ماه پیش" | ||
// [1]=> | ||
// string(26) "خواندن ۱ دقیقه" | ||
// } | ||
// ["image"]=> | ||
// array(1) { | ||
// [0]=> | ||
// string(75) "https://files.virgool.io/upload/users/1/posts/nxh2n2v7u5qq/ducrhc6h5jsy.gif" | ||
// } | ||
// } | ||
// ... | ||
``` | ||
|
||
## Dependencies | ||
|
||
- [Goutte](https://github.com/FriendsOfPHP/Goutte) | ||
|
||
## Credits | ||
|
||
@evokelektrique - Developer | ||
- [EVOKE](https://github.com/evokelektrique) - Developer |