abenevaut/laravel-bluesky-client

Laravel Http Client Infrastructure

0.0.5 2025-01-28 15:37 UTC

This package is auto-updated.

Last update: 2025-01-28 15:38:12 UTC


README

Installation

You can install the package via composer:

composer require abenevaut/laravel-bluesky-client

Add bluesky service to your config/services.php file:

'bluesky' => [
    'baseUrl' => env('BLUESKY_URL', 'https://bsky.social'), // Bluesky API URL, default is the official Bluesky URL
    'identifier' => env('BLUESKY_IDENTIFIER'), // Your Bluesky identifier, like abenevaut.bsky.social
    'password' => env('BLUESKY_PASSWORD'), // Your Bluesky password
    'debug' => env('BLUESKY_DEBUG', false), // Debug mode
],

Usage

use Abenevaut\BlueskyClient\Facades\BlueSky;

BlueSky::getClient(): BlueSkyClient; // Get the BlueSky client
BlueSky::countFollowers(string $account): int; // Get the number of followers of an account, like abenevaut.bsky.social