Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evokelektrique/virgool-php
A Working PHP library for Virgool
https://github.com/evokelektrique/virgool-php
persian php-library virgool virgoolio
Last synced: 10 days ago
JSON representation
A Working PHP library for Virgool
- Host: GitHub
- URL: https://github.com/evokelektrique/virgool-php
- Owner: evokelektrique
- Created: 2022-03-09T12:20:22.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-03-14T20:29:31.000Z (over 2 years ago)
- Last Synced: 2024-05-02T23:18:27.865Z (7 months ago)
- Topics: persian, php-library, virgool, virgoolio
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
Simple and easy to use library to work with Virgool.
## What is virgool?
ویرگول یک بستر خصوصی انتشار محتوا (Microblog) است.
## Installation
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
- [EVOKE](https://github.com/evokelektrique) - Developer