承接 punksolid/doopla 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

punksolid/doopla

最新稳定版本:v0.1.0-alpha

Composer 安装命令:

composer require punksolid/doopla

包简介

PHP extractor library for doopla.mx

README 文档

README

Description

This is a PHP library for interacting with the Doopla platform. It provides a simple and easy-to-use interface for making requests to the Doopla API.

Installation

This library can be installed via Composer:

composer require punksolid/doopla

Usage

First, you need to instantiate the Doopla class with an instance of HttpClientInterface. You can use the MockHttpClient for testing purposes.

use Punksolid\Doopla\Doopla;
use Symfony\Component\HttpClient\MockHttpClient;

$client = new MockHttpClient();
$doopla = new Doopla($client);

Setting User Credentials

You can set the user's email and password using the setEmail and setPassword methods respectively.

$doopla->setEmail('user@example.com');
$doopla->setPassword('password');

Logging In

To log in, simply call the login method.

$doopla->login();

Getting Account Balance

You can get the account balance by calling the getBalance method.

$balance = $doopla->getBalance();

Testing

This library comes with a set of unit tests. You can run these tests using PHPUnit.

vendor/bin/phpunit

Contributing

Contributions are welcome. Please submit a pull request with any enhancements.

License

This library is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 1.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-08