{"id":33953463,"url":"https://github.com/orion-crm/client-php","last_synced_at":"2026-05-27T21:31:05.532Z","repository":{"id":57033050,"uuid":"84200983","full_name":"orion-crm/client-php","owner":"orion-crm","description":"Official php client for orion-crm","archived":false,"fork":false,"pushed_at":"2017-11-28T12:20:13.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-14T08:51:36.599Z","etag":null,"topics":["client","crm","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orion-crm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-07T13:15:33.000Z","updated_at":"2017-03-07T13:26:18.000Z","dependencies_parsed_at":"2022-08-24T05:40:48.688Z","dependency_job_id":null,"html_url":"https://github.com/orion-crm/client-php","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/orion-crm/client-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orion-crm%2Fclient-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orion-crm%2Fclient-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orion-crm%2Fclient-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orion-crm%2Fclient-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orion-crm","download_url":"https://codeload.github.com/orion-crm/client-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orion-crm%2Fclient-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33585203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","crm","php"],"created_at":"2025-12-12T20:00:03.423Z","updated_at":"2026-05-27T21:31:05.516Z","avatar_url":"https://github.com/orion-crm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orion CRM API\n\nСоздание клиента\n\n```php\n$client = new Orion\\Component\\Client\\Client([\n    'token' =\u003e 'qwe123',\n    'version' =\u003e 'v1',\n    'host' =\u003e 'http://localhost:8000'\n]);\n```\n\n## CRM\n\n### Создание лида:\n\n```php\n$lead = new \\Orion\\Component\\Client\\Crm\\Lead();\n$lead-\u003esetName('Hello api!');\n$lead-\u003esetPrice(10000);\n```\n\n### Создание контакта:\n\n```php\n$contact = new \\Orion\\Component\\Client\\Crm\\Contact();\n$contact-\u003esetName('Hello api!');\n$contact-\u003esetPhone('+78332207107');\n```\n\nЕсли контакт был найден в базе данных по номеру телефона или email адресу, то новый создаваться не \nбудет и сохранение будет проигнорировано.\n\n### Создание компании:\n\n```php\n$company = new \\Orion\\Component\\Client\\Crm\\Company();\n$company-\u003esetName('Hello api!');\n$company-\u003esetPhone('+78332207107');\n```\n\nЕсли компания была найдена в базе данных по номеру телефона или email адресу, то новая создаваться не \nбудет и сохранение будет проигнорировано.\n\n### Создание задачи:\n\n```php\n$issue = new \\Orion\\Component\\Client\\Issue\\Issue();\n$issue-\u003esetContent('Hello api!');\n$issue-\u003esetResult('Issue api is done');\n$issue-\u003esetObjectId(1);\n$issue-\u003esetObjectClass('lead');\n$issue-\u003esetExecutorId(1);\n$issue-\u003esetType(1);\n// $issue-\u003esetType(null); NULL - is comment\n$issue-\u003esetDeadlineAt(new \\DateTime);\n// $issue-\u003esetDeadlineAt('2017-10-10 10:10:10');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forion-crm%2Fclient-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forion-crm%2Fclient-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forion-crm%2Fclient-php/lists"}