{"id":21013852,"url":"https://github.com/jdecool/clamav-php-client","last_synced_at":"2026-02-27T21:05:11.449Z","repository":{"id":56997488,"uuid":"147073295","full_name":"jdecool/clamav-php-client","owner":"jdecool","description":" PHP client for ClamAV deamon","archived":false,"fork":false,"pushed_at":"2018-09-02T13:49:40.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T17:09:31.634Z","etag":null,"topics":["clamav","php","php-library"],"latest_commit_sha":null,"homepage":null,"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/jdecool.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-09-02T09:51:50.000Z","updated_at":"2023-02-02T09:14:40.000Z","dependencies_parsed_at":"2022-08-21T14:50:09.704Z","dependency_job_id":null,"html_url":"https://github.com/jdecool/clamav-php-client","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/jdecool%2Fclamav-php-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Fclamav-php-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Fclamav-php-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Fclamav-php-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdecool","download_url":"https://codeload.github.com/jdecool/clamav-php-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254274695,"owners_count":22043568,"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":["clamav","php","php-library"],"created_at":"2024-11-19T09:44:19.659Z","updated_at":"2026-02-27T21:05:06.425Z","avatar_url":"https://github.com/jdecool.png","language":"PHP","readme":"ClamAV deamon PHP client\n========================\n\nThis library is a PHP client for [ClamAV](https://www.clamav.net) deamon.\n\n## Installation\n\nIt can be install through Composer.\n\n```bash\n$ composer require jdecool/clamav-client\n```\n\n## Usage\n\n```php\n$clientFactory = new JDecool\\ClamAV\\ClientFactory();\n\n$client = $clientFactory-\u003ecreate('127.0.0.1', 3310);\n$client-\u003eping(); // throw an ConnectionError exception if error occured\n```\n\nScan a file\n\n```php\n$clientFactory = new JDecool\\ClamAV\\ClientFactory();\n\n$client = $clientFactory-\u003ecreate('127.0.0.1', 3310);\n$analysis = $client-\u003escan('/path/to/file');\n\n$analysis-\u003ecount(); // = 1\n$analysis-\u003eisInfected(); // true or false\n$analysis-\u003egetMessage(); // if file is infected, it contains malware name\n```\n\n## Available méthods\n\n* `JDecool\\ClamAV\\Client::ping(): void`\n* `JDecool\\ClamAV\\Client::version(): string`\n* `JDecool\\ClamAV\\Client::reload(): void`\n* `JDecool\\ClamAV\\Client::shutdown(): void`\n* `JDecool\\ClamAV\\Client::scanBatch(array $paths): JDecool\\ClamAV\\Analysis\\Analysis`\n* `JDecool\\ClamAV\\Client::scan(string ...$paths): JDecool\\ClamAV\\Analysis\\Analysis`\n* `JDecool\\ClamAV\\Client::contScan(string $path): JDecool\\ClamAV\\Analysis\\Analysis`\n* `JDecool\\ClamAV\\Client::multiscan(string $path): JDecool\\ClamAV\\Analysis\\Analysis`\n* `JDecool\\ClamAV\\Client::allMatchScan(string $path): JDecool\\ClamAV\\Analysis\\Analysis`\n* `JDecool\\ClamAV\\Client::stats(string $path): string`\n* `JDecool\\ClamAV\\Client::startSession(): void`\n* `JDecool\\ClamAV\\Client::endSession(): void`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdecool%2Fclamav-php-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdecool%2Fclamav-php-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdecool%2Fclamav-php-client/lists"}