Download the PHP package shahmal1yev/blueskysdk without Composer
On this page you can find all versions of the php package shahmal1yev/blueskysdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shahmal1yev/blueskysdk
More information about shahmal1yev/blueskysdk
Files in shahmal1yev/blueskysdk
Package blueskysdk
Short Description BlueSky SDK is a PHP library used for interacting with the BlueSky API. This library allows you to perform various operations using the BlueSky API.
License mit
Informations about the package blueskysdk
BlueSky SDK
Project Description
BlueSky SDK is a PHP library used for interacting with the BlueSky API. This library allows you to perform various operations using the BlueSky API.
Requirements
- PHP: 7.4 or newer
- Composer: Dependency management tool for PHP
Installation
To install BlueSky SDK via Composer, use the following command:
Usage
Once installed, you can start using the SDK to interact with the BlueSky API. Below are examples of how to authenticate and perform various operations using the library.
Authentication and Basic Usage
First, instantiate the Client
class and authenticate using your BlueSky credentials:
Making Requests
BlueSky SDK provides a fluent interface to construct API requests. Use chained method calls to navigate through the API lexicons and forge the request:
Handling Responses
BlueSky SDK supports both Resource and Castable interfaces, providing flexibility in handling API responses and enabling smooth data manipulation and casting for a more streamlined development experience.
Responses are returned as resource instances that implement the ResourceContract
. These resources provide methods
for accessing data returned by the API.
Working with Assets and Relationships
BlueSky SDK allows you to access complex assets like followers and labels directly through the resource instances.
Example: Fetching Profile Information
Here is a more complete example of fetching and displaying profile information, including created dates and labels:
Extending the SDK
BlueSky SDK is built with extensibility in mind. You can add custom functionality by extending existing classes and creating your own request and resource types. Follow the structure used in the SDK to maintain consistency.
Contribution
We welcome contributions from the community! If you find any bugs or would like to add new features, feel free to:
- Open an issue: Report bugs, request features, or suggest improvements.
- Submit a pull request: Contributions to the codebase are welcome. Please follow best practices and ensure that your code adheres to the existing architecture and coding standards.
License
BlueSky SDK is licensed under the MIT License. See the LICENSE file for full details.
All versions of blueskysdk with dependencies
ext-curl Version *
ext-fileinfo Version *
php Version >=7.4
nesbot/carbon Version 2.x
shahmal1yev/gcollection Version ^1.0