{"id":22916659,"url":"https://github.com/synergitech/creditsafe-connect","last_synced_at":"2025-07-15T03:41:55.276Z","repository":{"id":33770130,"uuid":"160188831","full_name":"SynergiTech/creditsafe-connect","owner":"SynergiTech","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-17T20:38:04.000Z","size":60,"stargazers_count":6,"open_issues_count":5,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-11T22:45:52.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/SynergiTech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-12-03T12:38:52.000Z","updated_at":"2024-05-03T10:27:02.000Z","dependencies_parsed_at":"2025-05-05T18:45:23.588Z","dependency_job_id":"183fb2f8-d6f9-4bf6-ac66-3c80bb122948","html_url":"https://github.com/SynergiTech/creditsafe-connect","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/SynergiTech/creditsafe-connect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcreditsafe-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcreditsafe-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcreditsafe-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcreditsafe-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SynergiTech","download_url":"https://codeload.github.com/SynergiTech/creditsafe-connect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SynergiTech%2Fcreditsafe-connect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265398460,"owners_count":23758475,"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":[],"created_at":"2024-12-14T06:14:09.145Z","updated_at":"2025-07-15T03:41:55.247Z","avatar_url":"https://github.com/SynergiTech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creditsafe API\n\n![Tests](https://github.com/SynergiTech/creditsafe-connect/workflows/Tests/badge.svg)\n\n```\ncomposer require synergitech/creditsafe-connect\n```\n\n## Usage\n\n### Setting up Client\n```php\n$config = [\n    'username'  =\u003e  'username',\n    'password'  =\u003e  'password'\n];\n\n$creditsafe = new \\SynergiTech\\Creditsafe\\Client($config);\n```\n\n### Access countries and their codes\n```php\n$creditsafe-\u003ecountries()-\u003eaccess();\n```\n\n### Search criteria using country code\n```php\n\n$creditsafe-\u003ecompanies()-\u003esearchCriteria(['countries' =\u003e 'GB']);\n\n```\n\n### Company search pagination\n```php\n$search = $creditsafe-\u003ecompanies()-\u003esearch(['countries' =\u003e 'GB', 'name' =\u003e 'GOOGLE UK LIMITED']);\n$search-\u003esetPageSize(100);\nforeach ($search as $result) {\n    $company = $result-\u003eget();\n}\n```\n\n### Get Custom report data options\n```php\n$creditsafe-\u003e()-\u003ereportCustomData()-\u003eget('DE');\n```\n\n### Get company report\n```php\n$creditsafe-\u003ecompanies()-\u003eget('GB001-0-03977902');\n```\n\n### Change report language\n```php\n$creditsafe-\u003ecompanies()-\u003eget('GB001-0-03977902', 'FR');\n```\n\n### Adding reason code as extra parameter needed for German reports\n```php\n$creditsafe-\u003ecompanies()-\u003eget('GB001-0-03977902', 'DE', ['customData' =\u003e 'de_reason_code::1']);\n```\n\n## Running tests\n```\nvendor/bin/phpunit tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynergitech%2Fcreditsafe-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynergitech%2Fcreditsafe-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynergitech%2Fcreditsafe-connect/lists"}