Download the PHP package sergeybruhin/nano-crm-client without Composer
On this page you can find all versions of the php package sergeybruhin/nano-crm-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sergeybruhin/nano-crm-client
More information about sergeybruhin/nano-crm-client
Files in sergeybruhin/nano-crm-client
Download sergeybruhin/nano-crm-client
More information about sergeybruhin/nano-crm-client
Files in sergeybruhin/nano-crm-client
Vendor sergeybruhin
Package nano-crm-client
Short Description Plain PHP API client for nano-crm-api
License MIT
Package nano-crm-client
Short Description Plain PHP API client for nano-crm-api
License MIT
Please rate this library. Is it a good library?
Informations about the package nano-crm-client
nano-crm-client
Plain PHP HTTP client for nano-crm-api — a self-hosted lead and contact management service.
Requirements
- PHP 8.3+
- Guzzle 7.x
Installation
Quick start
The client appends /api/v1/ to baseUrl and attaches Authorization: Bearer {token} on every request.
Leads
All lead methods are accessible via $client->leads() and return LeadDto instances.
Contacts
All contact methods are accessible via $client->contacts() and return ContactDto instances.
DTOs
CreateLeadInput
| Property | Type | Required |
|---|---|---|
contact |
array{full_name: string, phone: string} |
Yes |
source |
string |
Yes |
type |
string |
Yes |
form |
array\|null |
No |
utm |
array\|null |
No |
meta |
array\|null |
No |
formKey |
string\|null |
No |
isTest |
bool |
No (default false) |
sentAt |
DateTimeInterface\|null |
No |
LeadDto
| Property | Type |
|---|---|
uuid |
string |
type |
string |
source |
string |
isTest |
bool |
sentAt |
DateTimeImmutable |
createdAt |
DateTimeImmutable |
updatedAt |
DateTimeImmutable |
contact |
ContactDto\|null |
utm |
UtmDto\|null |
remoteIds |
array\|null |
form |
array\|null |
meta |
array\|null |
formKey |
string\|null |
ContactDto
| Property | Type |
|---|---|
uuid |
string |
fullName |
string |
firstName |
string\|null |
lastName |
string\|null |
middleName |
string\|null |
primaryPhoneNumber |
string\|null |
primaryEmail |
string\|null |
remoteIds |
array\|null |
createdAt |
DateTimeImmutable |
updatedAt |
DateTimeImmutable |
Exception handling
All exceptions extend NanoCrm\Client\Exceptions\NanoCrmException.
| Exception | HTTP status | Notes |
|---|---|---|
AuthenticationException |
401 | Invalid or missing service token |
NotFoundException |
404 | Resource does not exist or was soft-deleted |
UnprocessableException |
422 | Validation errors — call $e->errors() |
NanoCrmException |
other | Generic API error |
License
MIT
All versions of nano-crm-client with dependencies
PHP Build Version
Package Version
The package sergeybruhin/nano-crm-client contains the following files
Loading the files please wait ...