Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arifszn/php-blog-client
PHP client to get recent blog posts from popular blogging platforms.
https://github.com/arifszn/php-blog-client
api article blog-api devto medium medium-api medium-article
Last synced: 3 months ago
JSON representation
PHP client to get recent blog posts from popular blogging platforms.
- Host: GitHub
- URL: https://github.com/arifszn/php-blog-client
- Owner: arifszn
- License: mit
- Created: 2021-08-13T08:58:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T14:23:33.000Z (over 2 years ago)
- Last Synced: 2024-05-28T19:39:31.088Z (7 months ago)
- Topics: api, article, blog-api, devto, medium, medium-api, medium-article
- Language: PHP
- Homepage: https://packagist.org/packages/arifszn/blog-client
- Size: 26.4 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
PHP client to get recent blog posts from popular blogging platforms
Packagist
·
Report Bug
·
Request Feature
Get recent blog posts from popular blogging platforms by just providing your username and showcase them on your portfolio or website.
> JavaScript version: blog.js
## Installation
Install via composer
```sh
composer require arifszn/blog-client
```## Usage
- **`getDevPost()`:** Get 10 recent posts from [dev](https://dev.to).
```php
use Arifszn\Blog\Client;$client = new Client();
$result = $client->getDevPost('yourusername');
```- **`getMediumPost()`:** Get 10 recent posts from [medium](https://medium.com).
```php
use Arifszn\Blog\Client;$client = new Client();
$result = $client->getMediumPost('yourusername');
```## Sample Response
```php
array:2 [▼
0 => array:6 [▼
"title" => "Why Enhancing Virtual Reality is Important",
"description" => "Virtual reality is seen as a “fun” technology to some without much...",
"thumbnail" => "https://cdn-images-1.medium.com/max/2600/0*kz30LOdXT8CyOymh",
"link" => "https://medium.com/p/ac19dd21c728",
"categories" => array:5 [▼
"vr",
"technology",
"virtual-reality",
"engineering",
"artificial-intelligence"
],
"publishedAt" => "2020-11-08 18:43:34"
],
1 => array:6 [▼
"title" => "How to Get Started With Data Science: a Brief Guide",
"description" => "You’ve heard about data science and machine learning, and you want to get started. Maybe you hear...",
"thumbnail" => "https://cdn-images-1.medium.com/max/2600/0*Ah0vLtsvxqUvRWuS",
"link" => "https://medium.com/p/88ec244f2fee",
"categories" => array:3 [▼
"beginner-coding",
"data-science-training",
"machine-learning-course"
],
"publishedAt" => "2020-26-07 22:55:26"
]
]
```## Contribute
Please read the [contributing guide](https://github.com/arifszn/php-blog-client/blob/main/CONTRIBUTING.md) to learn how you can help.
## Support
You can show your support by starring this project.
## License
[MIT](https://github.com/arifszn/php-blog-client/blob/main/LICENSE)