punksolid / doopla
PHP extractor library for doopla.mx
Installs: 1 215
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Requires
- php: ^8.2
- symfony/css-selector: ^7.0
- symfony/dom-crawler: ^7.0
- symfony/http-client: ^7.0
Requires (Dev)
- phpunit/phpunit: ^11.0
- symfony/var-dumper: ^7.0
This package is auto-updated.
Last update: 2025-04-30 21:10:43 UTC
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.