Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appwrite/php-clamav
ClamAV network and pipe client for PHP
https://github.com/appwrite/php-clamav
appwrite clamav clamav-antivirus clamav-client clamav-scanning hacktoberfest php
Last synced: 29 days ago
JSON representation
ClamAV network and pipe client for PHP
- Host: GitHub
- URL: https://github.com/appwrite/php-clamav
- Owner: appwrite
- License: mit
- Created: 2019-05-11T12:28:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T15:44:44.000Z (3 months ago)
- Last Synced: 2024-10-01T10:05:52.685Z (about 1 month ago)
- Topics: appwrite, clamav, clamav-antivirus, clamav-client, clamav-scanning, hacktoberfest, php
- Language: PHP
- Homepage: https://github.com/appwrite
- Size: 41 KB
- Stars: 64
- Watchers: 18
- Forks: 30
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Appwrite ClamAV PHP Client
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord?r=Github)
![Total Downloads](https://img.shields.io/packagist/dt/appwrite/php-clamav.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/php-clamav?style=flat-square)](https://travis-ci.com/appwrite/php-clamav)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)PHP Client to connect to ClamAV daemon over TCP or using a local socket from command line and scan your storage files for viruses.
## Getting Started
Install using composer:
```bash
composer require appwrite/php-clamav
``````php
ping(); // Check ClamAV is up and running$clam->version(); // Check ClamAV version
$clam->fileScan('path/to/file.dmg'); // Returns true if a file is clean or false if a file is infected
$clam->reload(); // Reload ClamAV database
$clam->shutdown(); // Shutdown ClamAV
```## System Requirements
This package requires PHP 7.1 or later. We recommend using the latest PHP version whenever possible.
## Find Us
* [GitHub](https://github.com/appwrite)
* [Discord](https://appwrite.io/discord)
* [Twitter](https://twitter.com/appwrite)## Authors
**Eldad Fux**
+ [https://twitter.com/eldadfux](https://twitter.com/eldadfux)
+ [https://github.com/eldadfux](https://github.com/eldadfux)## Copyright and license
The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)