PHP code example of abenevaut / laravel-bluesky-client

1. Go to this page and download the library: Download abenevaut/laravel-bluesky-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

abenevaut / laravel-bluesky-client example snippets


'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
],

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