Download the PHP package pinheironinja/moip-assinaturas without Composer
On this page you can find all versions of the php package pinheironinja/moip-assinaturas. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package moip-assinaturas
MoIP Assinaturas v1.5 PHP client SDK
Índice
- Instalação
- Autenticação
- Clientes
Instalação
Execute em seu shell:
composer require pinheironinja/moip-assinaturas
Autenticação
Basic Auth
'10101010101010101010101010101010',
'key' => 'ABABABABABABBABVABAVABASVBSAVSABSAVSBAVABS',
'sandbox' => true
);
$moip = new Moip($moip_account_info);
Clientes
Criando um cliente
$customer = $moip->customers();
$customer->setCode(uniqid());
$customer->setFullName('Joãozinho Exemplo da Silva');
$customer->setEmail('[email protected]');
$customer->setCPF('22222222222');
$customer->setPhone('99','999999999');
$customer->setBirthdate('1994-01-18');
$customer->setAddress('R Teste', '12', 'Centro', 'Nova Iguaçu', 'RJ', '00000000', 'BRA' );
$customer->create();
print_r($customer);
Consultando dados de um cliente
$customer = $moip->customers()->get('5ac9a60880684');
print_r($customer);
Consultando todos os clientes
$customers = $moip->customers()->all();
print_r($customers);
Criando um cliente
$customer = $moip->customers(); $customer->setCode(uniqid()); $customer->setFullName('Joãozinho Exemplo da Silva'); $customer->setEmail('[email protected]'); $customer->setCPF('22222222222'); $customer->setPhone('99','999999999'); $customer->setBirthdate('1994-01-18'); $customer->setAddress('R Teste', '12', 'Centro', 'Nova Iguaçu', 'RJ', '00000000', 'BRA' ); $customer->create(); print_r($customer);
Consultando dados de um cliente
$customer = $moip->customers()->get('5ac9a60880684'); print_r($customer);
Consultando todos os clientes
$customers = $moip->customers()->all(); print_r($customers);
All versions of moip-assinaturas with dependencies
PHP Build Version
Package Version
No informations.
The package pinheironinja/moip-assinaturas contains the following files
Loading the files please wait ....