aedart / athenaeum-antivirus
Antivirus scanner for Laravel
8.13.0
2024-10-29 12:57 UTC
Requires
- php: ^8.2
- ext-sockets: *
- aedart/athenaeum-contracts: ^8.13
- aedart/athenaeum-streams: ^8.13
- aedart/athenaeum-support: ^8.13
- aedart/athenaeum-validation: ^8.13
- illuminate/events: ^v11.29.0
- xenolope/quahog: ^3.0
- dev-main
- 8.13.0
- 8.12.0
- 8.11.0
- 8.10.0
- 8.9.0
- 8.8.0
- 8.7.0
- 8.6.0
- 8.5.0
- 8.4.0
- 8.3.0
- 8.2.0
- 8.1.0
- 8.0.0
- 7.33.0
- 7.32.0
- 7.31.0
- 7.30.1
- 7.30.0
- 7.29.0
- 7.28.0
- 7.27.0
- 7.26.0
- 7.25.0
- 7.24.0
- 7.23.0
- 7.22.1
- 7.22.0
- 7.21.0
- 7.20.0
- 7.19.0
- 7.18.1
- 7.18.0
- 7.17.0
- 7.16.0
- 7.15.0
- 7.14.0
- 7.13.0
- 7.12.0
- 7.11.3
- 7.11.2
- 7.11.1
- 7.11.0
- 7.10.1
- 7.10.0
- 7.9.1
- 7.9.0
- 7.8.0
- 7.7.2
- 7.7.1
- 7.7.0
- 7.6.0
- 7.5.0
- 7.4.0
This package is auto-updated.
Last update: 2024-10-29 12:59:09 UTC
README
The Antivirus package provides a "profile-based" approach for scanning files for infections, such as viruses, malware or other harmful code.
use Aedart\Antivirus\Facades\Antivirus; $result = Antivirus::scan($file); if (!$result->isOk()) { // File may contain harmful code... do something! }
The package also comes with a default validation rule, to prevent upload of infected files.
use Aedart\Antivirus\Validation\Rules\InfectionFreeFile; use Illuminate\Support\Facades\Route; use Illuminate\Http\Request; Route::post('/pictures', function (Request $request) { $request->validate([ 'picture' => [ 'required', 'file', new InfectionFreeFile() ] ]); $file = $request->file('picture'); // ... do something with uploaded file... });
Supported Scanners
- ClamAV
- Null Scanner (for testing purposes)
- (Your custom scanner)
Documentation
Please read the official documentation for additional information.
Repository
The mono repository is located at github.com/aedart/athenaeum
Versioning
This package follows Semantic Versioning 2.0.0
License
BSD-3-Clause, Read the LICENSE file included in this package