| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 36 | All time: 11,013 This week: 51 | ||||
| Version | License | PHP version | Categories | |||
| hotmart 1.0.0 | Custom (specified... | 5 | PHP 5, E-Commerce, Web services |
| Description | Author | |||||||||||||||||||||||
This package can be used to get the Hotmart user account details using its API. |
| |||||||||||||||||||||||
<?php |
[![Latest Version on Packagist][ico-version]][link-packagist] [![Total Downloads][ico-downloads]][link-downloads] [![Build Status][ico-travis]][link-travis]
SDK PHP for connection to the Hotmart API. Take a look at contributing.md to see a to do list.
Via Composer
$ composer require wesleydeveloper/hotmart
Create array settings
use Wesleydeveloper\Hotmart\Hotmart;
$config = [
'client_id' => '[YOUR_CLIENT_ID]',
'client_secret' => '[YOUR_CLIENT_SECRET]',
'basic' => '[YOUR_BASIC]'
];
$hotmart = new Hotmart($config);
var_dump($hotmart->getLoggedUser());
or set variables
use Wesleydeveloper\Hotmart\Hotmart;
$client_id = '[YOUR_CLIENT_ID]';
$client_secret = '[YOUR_CLIENT_SECRET]';
$basic = '[YOUR_BASIC]';
$hotmart = new Hotmart();
$hotmart->setConfig($client_id, $client_secret, $basic);
var_dump($hotmart->getLoggedUser());
This is the class where you have to focus. It is connected to the API connection class, Support\HotConnect.
All required and optional parameters are documented in class /path-to-project/vendor/wesleydeveloper/hotmart/src/Hotmart.php
var_dump($hotmart->getHotlinks());
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
MIT. Please see the license file for more information.
[ico-version]: https://img.shields.io/packagist/v/wesleydeveloper/hotmart.svg?style=flat-square [ico-downloads]: https://img.shields.io/packagist/dt/wesleydeveloper/hotmart.svg?style=flat-square [ico-travis]: https://img.shields.io/travis/wesleydeveloper/hotmart/master.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/wesleydeveloper/hotmart [link-downloads]: https://packagist.org/packages/wesleydeveloper/hotmart [link-travis]: https://travis-ci.org/wesleydeveloper/hotmart [link-author]: https://github.com/wesleydeveloper [link-contributors]: ../../contributors
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| / | src | / | Support |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.