{"id":17689328,"url":"https://github.com/m1guelpf/php-sqreen-api","last_synced_at":"2025-03-30T21:44:49.096Z","repository":{"id":62521045,"uuid":"91727940","full_name":"m1guelpf/php-sqreen-api","owner":"m1guelpf","description":"A PHP Client for the Sqreen API","archived":false,"fork":false,"pushed_at":"2019-11-16T18:32:55.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T02:19:51.018Z","etag":null,"topics":["api","client","guzzle","php","sqreen"],"latest_commit_sha":null,"homepage":null,"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/m1guelpf.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-18T18:57:57.000Z","updated_at":"2017-05-19T01:58:02.000Z","dependencies_parsed_at":"2022-11-02T14:00:42.698Z","dependency_job_id":null,"html_url":"https://github.com/m1guelpf/php-sqreen-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Fphp-sqreen-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Fphp-sqreen-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Fphp-sqreen-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1guelpf%2Fphp-sqreen-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1guelpf","download_url":"https://codeload.github.com/m1guelpf/php-sqreen-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385391,"owners_count":20768668,"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":["api","client","guzzle","php","sqreen"],"created_at":"2024-10-24T11:47:22.587Z","updated_at":"2025-03-30T21:44:48.993Z","avatar_url":"https://github.com/m1guelpf.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Sqreen API Client\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/m1guelpf/sqreen-api.svg?style=flat-square)](https://packagist.org/packages/m1guelpf/sqreen-api)\n[![Software License](https://img.shields.io/github/license/m1guelpf/php-sqreen-api.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/m1guelpf/php-sqreen-api/master.svg?style=flat-square)](https://travis-ci.org/m1guelpf/php-sqreen-api)\n[![Total Downloads](https://img.shields.io/packagist/dt/m1guelpf/sqreen-api.svg?style=flat-square)](https://packagist.org/packages/m1guelpf/sqreen-api)\n\nThis package makes it easy to interact with [the Sqreen API](https://doc.sqreen.io/reference).\n\n## Requirements\n\nThis package requires PHP \u003e= 5.5.\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require m1guelpf/sqreen-api\n```\n\n## Usage\n\nYou must pass a Guzzle client and the API token to the constructor of `M1guelpf\\SqreenAPI\\Sqreen`.\n\n``` php\n$sqreen = new \\M1guelpf\\SqreenAPI\\Sqreen('YOUR_SQREEN_API_TOKEN');\n```\n\nor you can skip the token and use the `connect()` method later\n\n``` php\n$sqreen = new \\M1guelpf\\SqreenAPI\\Sqreen();\n\n$sqreen-\u003econnect('YOUR_SQREEN_API_TOKEN');\n```\n\n### Get Email info\n``` php\n$sqreen-\u003eemails($email);\n```\n\n### Get IP info\n``` php\n$sqreen-\u003eips($ip);\n```\n\n### Get the Guzzle Client\n\n``` php\n$sqreen-\u003egetClient();\n```\n\n### Set the Guzzle Client\n\n``` php\n$client = new \\GuzzleHttp\\Client(); // Example Guzzle client\n$sqreen-\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%2Fm1guelpf%2Fphp-sqreen-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm1guelpf%2Fphp-sqreen-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm1guelpf%2Fphp-sqreen-api/lists"}