Guardian PHP SDK

The development of DOVU's ongoing PHP SDK for Guardian.

The Guardian PHP SDK by DOVU simplifies the process of interacting with the Guardian API, enabling developers to efficiently manage policies, workflows, and tokenized credits within the DOVU ecosystem. This SDK is designed to reduce complexity, provide clear workflows, and ensure seamless integration with Guardian infrastructure.

Check it out below:

Key Features

  1. Configuration-Based Management The SDK enables configuration-driven consumption and management of Guardian policies, leveraging workflows and templates to streamline interactions.

  2. Rapid Integration Using the SDK, developers can easily:

    • Import and manage Guardian workflows.

    • Assign roles to users and interact with workflow stages.

    • Validate payloads against schema specifications before submission.

  3. Workflow Automation The SDK supports a mediator and strategy pattern, making it possible to automate complex workflows with minimal code. It ensures clear and reliable data flow for submitting and approving ecological projects, sites, and claims.

  4. End-to-End Testing and Validation The SDK includes robust testing capabilities to validate workflows and detect potential bottlenecks in Guardian operations, such as data queries and scaling challenges. Developers can use dry-run scenarios and testnet environments to simulate production workflows.

Strategic Approach

The SDK prioritizes:

  • Simplicity: Minimizing the number of methods required to interact with Guardian.

  • Scalability: Addressing N+1 query issues and ensuring readiness for large-scale deployments.

  • Flexibility: Supporting custom schemas and workflows to meet enterprise needs.

Developer Flow Example

The SDK enables step-by-step interaction with Guardian workflows:

  1. Setup: Configure the SDK with Guardian API details.

  2. Policy Import: Import workflows using GuardianWorkflowConfiguration.

  3. Stage Execution: Perform actions such as creating projects, approving claims, and minting tokens.

  4. Validation: Use schema specifications to validate data before submission.

Why It Matters

The Guardian PHP SDK is a foundational tool for developers building on DOVU and the Guardian ecosystem in PHP and Laravel projects. By abstracting complex API interactions, it empowers users to focus on creating impactful solutions for sustainability and beyond. The SDK sets a new standard for working with Guardian policies, combining ease of use with enterprise-grade capabilities.

Need Support?

If you need assistance using the Guardian PHP SDK or have questions about how to integrate it into your projects, our team is here to help. Please don’t hesitate to reach out for further guidance or support in making the most of this powerful tool.

Last updated