PHP code example of shahmal1yev / blueskysdk

1. Go to this page and download the library: Download shahmal1yev/blueskysdk 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/ */

    

shahmal1yev / blueskysdk example snippets




use Atproto\Client;

// Create a client instance
$client = new Client();

// Authenticate with BlueSky
$client->authenticate('your-handle', 'your-password');

// Get your profile
$profile = bskyFacade($client)->getProfile()
    ->actor($client->authenticated()->handle())
    ->send();

// Get the date you joined
$createdAt = $profile->createdAt();