{"id":15916871,"url":"https://github.com/sirodiaz/php-klaviyo-api","last_synced_at":"2025-03-24T07:31:43.224Z","repository":{"id":32022854,"uuid":"129764798","full_name":"SiroDiaz/php-klaviyo-api","owner":"SiroDiaz","description":"Low level but elegant Klaviyo full API wrapper for PHP with asynchronous track event support","archived":false,"fork":false,"pushed_at":"2022-05-28T13:29:02.000Z","size":80,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T03:11:12.685Z","etag":null,"topics":["analytics","api","api-client","api-wrapper","behavior","ecommerce","klaviyo","php","php7"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/siro/php-klaviyo-api","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SiroDiaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-16T15:24:50.000Z","updated_at":"2025-01-28T10:54:18.000Z","dependencies_parsed_at":"2022-08-24T05:10:14.075Z","dependency_job_id":null,"html_url":"https://github.com/SiroDiaz/php-klaviyo-api","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiroDiaz%2Fphp-klaviyo-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiroDiaz%2Fphp-klaviyo-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiroDiaz%2Fphp-klaviyo-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiroDiaz%2Fphp-klaviyo-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SiroDiaz","download_url":"https://codeload.github.com/SiroDiaz/php-klaviyo-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245227432,"owners_count":20580882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["analytics","api","api-client","api-wrapper","behavior","ecommerce","klaviyo","php","php7"],"created_at":"2024-10-06T18:06:04.515Z","updated_at":"2025-03-24T07:31:42.872Z","avatar_url":"https://github.com/SiroDiaz.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=3XKLA6VTYVSKW\u0026source=url"],"categories":[],"sub_categories":[],"readme":"# php-klaviyo-api\n\n[![Build Status](https://travis-ci.org/SiroDiaz/php-klaviyo-api.svg?branch=dev)](https://travis-ci.org/SiroDiaz/php-klaviyo-api)\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=3XKLA6VTYVSKW\u0026source=url)\n\nKlaviyo API wrapper for PHP. It allows to consume the Klaviyo v1 API using a clear and simple\nPHP class format for make the usage user-friendly. Stuff like delete a list is as logic as doing:\n`$klaviyo-\u003elist-\u003edelete('asdD2e2')`. Easy, isn't it?\n\n## Installation\nInstalling php-klaviyo-api is simple. You just need Composer installed and added to the path. For install the\ncurrent last version run:\n\n`composer require siro/php-klaviyo-api:\"^1.6.0\"`\n\n## Usage\n\n### API organization and usage\n\nThe php-klaviyo-api is organized as the official Klaviyo API, really.\nIf you want to access to event API you must do as follow:\n\n```php\n// klaviyo Event API\n$klaviyo-\u003eevent-\u003etrack($event, $customerProperties, $properties);\n$klaviyo-\u003eevent-\u003etrackAsync($event, $customerProperties, $properties);\n\n// email template API\n$klaviyo-\u003etemplate-\u003egetAll();\n$klaviyo-\u003etemplate-\u003ecreate('newuser', $htmlString);\n\n// lists API\n$klaviyo-\u003elist-\u003egetLists();\n$klaviyo-\u003elist-\u003ecreate('premium');\n```\n\nA real example would be as i show here:\n\n```php\n\u003c?php\n\nuse Siro\\Klaviyo\\KlaviyoAPI;\n\n$klaviyo = new KlaviyoAPI();\n$klaviyo-\u003eevent-\u003etrackAsync(\n    'register',\n    ['email' =\u003e 'federico@gmail.com'],\n    []\n);\n```\n\nAs you can see it is really easy. The code is good organized, with the same\ndocumentation that the official one. You just need to read a bit and you will see that it is simple and intuitive.\n\n### Klaviyo Event API\n\nThis API is used to track events to Klaviyo. This is the main feature\nand you maybe would use it. By that reason i implemented this API wrapper\nin this way.\nFor load it\n\n## Contributing\nThis project uses **PSR-4** coding standard. If you want to make a contribution it must be important run `make sniff` for checking\nyour code before commit the changes.\nAt this moment it is prioritary making tests for the API so Pull requests for tests and fixes are welcome.\n\n## Credits\nAll credits, at this moment, are for Siro Díaz Palazón \u003csirodiaz93@gmail.com\u003e.\n\n## Contributors\nAt this moment main contributors are:\n - Siro Díaz Palazón [SiroDiaz](https://github.com/SiroDiaz)\n - Lukasz [Blysq](https://github.com/Blysq)\n\n## License\nThis project is licensed under MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirodiaz%2Fphp-klaviyo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsirodiaz%2Fphp-klaviyo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirodiaz%2Fphp-klaviyo-api/lists"}