arifszn/blog-client

PHP client to get recent blog posts from popular blogging platforms

v1.1.0 2022-06-19 14:16 UTC

This package is auto-updated.

Last update: 2024-04-19 19:31:08 UTC


README


174469932-d3cbf8a0-b6ba-4c64-ab77-456ea4408f87.png

PHP client to get recent blog posts from popular blogging platforms

68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726966737a6e2f626c6f672d636c69656e74 badge.svg 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39626534616566316439666237383464333939392f6d61696e7461696e6162696c697479 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39626534616566316439666237383464333939392f746573745f636f766572616765 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61726966737a6e2f7068702d626c6f672d636c69656e74 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d6275792532306d6525323061253230636f666665652d79656c6c6f773f6c6f676f3d6275796d6561636f66666565 68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f75726c3d68747470732533412532462532466769746875622e636f6d25324661726966737a6e2532467068702d626c6f672d636c69656e74

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

composer require arifszn/blog-client

Usage

  • getDevPost(): Get 10 recent posts from dev.

    use Arifszn\Blog\Client;
    
    $client = new Client();
    $result = $client->getDevPost('yourusername');
  • getMediumPost(): Get 10 recent posts from medium.

    use Arifszn\Blog\Client;
    
    $client = new Client();
    $result = $client->getMediumPost('yourusername');

Sample Response

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 to learn how you can help.

Support

You can show your support by starring this project.

Github Star

License

MIT