{"id":33977881,"url":"https://github.com/laraccess/laraccess-api","last_synced_at":"2026-04-08T12:33:01.293Z","repository":{"id":62521047,"uuid":"90900179","full_name":"laraccess/laraccess-api","owner":"laraccess","description":"PHP Laraccess API Client","archived":false,"fork":false,"pushed_at":"2017-05-11T07:46:44.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-14T15:26:24.828Z","etag":null,"topics":["api","client","guzzle","laraccess","laraccess-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laraccess.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-10T19:19:56.000Z","updated_at":"2017-11-29T17:33:18.000Z","dependencies_parsed_at":"2022-11-02T14:00:47.680Z","dependency_job_id":null,"html_url":"https://github.com/laraccess/laraccess-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/laraccess/laraccess-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laraccess%2Flaraccess-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laraccess%2Flaraccess-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laraccess%2Flaraccess-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laraccess%2Flaraccess-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laraccess","download_url":"https://codeload.github.com/laraccess/laraccess-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laraccess%2Flaraccess-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","client","guzzle","laraccess","laraccess-api"],"created_at":"2025-12-13T02:38:11.422Z","updated_at":"2026-04-08T12:33:01.283Z","avatar_url":"https://github.com/laraccess.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laraccess API Client\n\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/m1guelpf/laraccess-api.svg?style=flat-square)](https://packagist.org/packages/m1guelpf/laraccess-api)\n[![Software License](https://img.shields.io/github/license/m1guelpf/laraccess-api.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/m1guelpf/laraccess-api/master.svg?style=flat-square)](https://travis-ci.org/m1guelpf/laraccess-api)\n[![Total Downloads](https://img.shields.io/packagist/dt/m1guelpf/laraccess-api.svg?style=flat-square)](https://packagist.org/packages/m1guelpf/laraccess-api)\n\nThis package makes it easy to interact with [Laraccess](https://github.com/m1guelpf/laraccess).\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require m1guelpf/laraccess-api\n```\n\n## Usage\n\nYou must pass a the API token to the constructor of `M1guelpf\\LaraccessApi\\Laraccess`.\n\n``` php\n$laraccess = new \\M1guelpf\\LaraccessApi\\Laraccess('YOUR_LARACCESS_API_TOKEN');\n```\n\nor you can skip the token and use the `connect()` method later\n\n``` php\n$laraccess = new \\M1guelpf\\LaraccessApi\\Laraccess();\n\n$laraccess-\u003econnect('YOUR_LARACCESS_API_TOKEN');\n```\n\n### Get User info\n``` php\n$laraccess-\u003egetUser();\n```\n\n### Create User\n``` php\n$laraccess-\u003ecreateUser($user);\n```\n\n### Edit User\n``` php\n$laraccess-\u003eeditUser($user);\n```\n\n### Delete User\n``` php\n$laraccess-\u003edeleteUser();\n```\n\n### Get User Campaigns\n``` php\n$laraccess-\u003egetUserCampaigns();\n```\n\n### Get Campaign\n``` php\n$laraccess-\u003egetCampaign($id);\n```\n\n### Create Campaign\n``` php\n$laraccess-\u003ecreateCampaign($campaign);\n```\n\n### Edit Campaign\n``` php\n$laraccess-\u003eeditCampaign($id, $campaign);\n```\n\n### Delete Campaign\n``` php\n$laraccess-\u003edeleteCampaign($id);\n```\n\n### Get Campaign Leads\n``` php\n$laraccess-\u003egetCampaignLeads($id);\n```\n\n### Get Lead\n``` php\n$laraccess-\u003egetLead($id);\n```\n\n### Create Lead\n``` php\n$laraccess-\u003ecreateLead($id, $lead);\n```\n\n### Edit Lead\n``` php\n$laraccess-\u003eeditLead($id, $lead);\n```\n\n### Delete Lead\n``` php\n$laraccess-\u003edeleteLead($id, $lead);\n```\n\n### Invite Lead\n``` php\n$laraccess-\u003einviteLead($id);\n```\n\n### Renenerate Token\n\n``` php\n$laraccess-\u003eregenerateToken($set);\n```\nwhere `$set` is false if you don't want to use the new token on future requests.\n\n### Get the Guzzle Client\n\n``` php\n$laraccess-\u003egetClient();\n```\n\n### Set the Guzzle Client\n\n``` php\n$client = new \\GuzzleHttp\\Client(); // Example Guzzle client\n$laraccess-\u003esetClient($client);\n```\nwhere $client is an instance of `\\GuzzleHttp\\Client`.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.\n\n## Credits\n\n- [Miguel Piedrafita](https://github.com/m1guelpf)\n- [All Contributors](../../contributors)\n\n## License\n\nThe Mozilla Public License 2.0 (MPL-2.0). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaraccess%2Flaraccess-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaraccess%2Flaraccess-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaraccess%2Flaraccess-api/lists"}