sunspikes/clamav-validator
Custom Laravel anti-virus validator for file uploads using ClamAV.
v4.0.0
2.2M downloads/mo
#2734 most downloaded on Packagist
sunspikes/clamav-validator
What this package is like to depend on
Last release 4 months ago
30 Mar 2026
Ships fairly regularly
a new release about every 6 months
Rarely documented
notes for 3 of 34 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
34 releases · first in 2015
3 releases in the last 12 months
see the full history below
Release timeline
34 releases · Oct 2015 to Mar 2026Releases
latest 34-
v4.0.030 Mar 2026Nothing published for this version
-
v3.1.025 Mar 2026Nothing published for this version
-
v3.0.204 Oct 2025Release notes
Open source →Fix laravel12 compatibility (#77)
* Fix: Update service provider for Laravel 12 compatibility
The service provider was using the `langPath` method, which was removed in Laravel 11, causing installation errors in newer versions of the framework.
This commit replaces the deprecated method with the modern `lang_path()` helper function, ensuring compatibility with Laravel 12 while maintaining support for older versions.
* Fix: Ensure backward compatibility for language file paths
The previous method for determining the language file path was not compatible with the full range of Laravel versions supported by this package. It caused errors in both very old and very new versions of the framework.
This commit introduces a `getLanguagePath` helper method in the service provider. This method checks for the existence of `lang_path()` (for Laravel 9+), `resource_path()` (for Laravel 5.3-8.x), and falls back to a manually constructed path using `basePath()` for older versions (5.0-5.2).
This ensures that the language files are published to the correct directory across all supported Laravel versions, from 5.x to 12.x.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
-
v3.0.120 Mar 2025Nothing published for this version
-
v3.0.001 Oct 2024Release notes
Open source →Remove validator overwrite (#63)
* Extract validation logic into own class
* Deprecate the custom validator
The is no need for a custom validator instance. It is bad practice for 3rd party packages to define rules this way.
* Adapt service provider, install validation rule as "extension"
Also, removed the custom resolver - the logic that is overwriting an application's validator instance.
* Add test helper
Helper is responsible for creating validator instance with desired validation rules...
* Adapt unit tests
* Remove IDE injected PHPDoc
* Fix style
-
v2.9.123 Jul 2024Nothing published for this version
-
v2.9.018 Mar 2024Nothing published for this version
-
v2.8.018 Mar 2024Release notes
Open source →allow passing stream directly to scanner (#68)
* allow passing stream directly to scanner
* moved resource check out of getFilename method to validateFileWithClamAv
* removed double spaces
-
v2.7.009 Mar 2023Nothing published for this version
-
v2.6.219 Sep 2022Nothing published for this version
-
v2.6.118 May 2022Nothing published for this version
-
v2.6.014 Mar 2022Nothing published for this version
-
v2.5.028 Dec 2021Nothing published for this version
-
v2.4.021 Apr 2021Nothing published for this version
-
v2.3.013 Sep 2020Nothing published for this version
-
v2.2.010 Mar 2020Nothing published for this version
-
v2.1.101 Oct 2019Nothing published for this version
-
v2.1.027 Sep 2019Nothing published for this version
-
v2.0.109 Sep 2019Nothing published for this version
-
v2.0.009 Sep 2019Nothing published for this version
-
v1.7.430 Aug 2019Nothing published for this version
-
v1.7.323 Jul 2019Nothing published for this version
-
v1.7.222 Jul 2019Nothing published for this version
-
1.7.122 Jul 2019Nothing published for this version
-
v1.3.131 Jan 2018Nothing published for this version
-
v1.2.118 Jan 2016Nothing published for this version
-
v1.722 Jul 2019Nothing published for this version
-
v1.603 Sep 2018Nothing published for this version
-
v1.509 Jul 2018Nothing published for this version
-
v1.425 Apr 2018Nothing published for this version
-
v1.322 Jun 2017Nothing published for this version
-
v1.203 Dec 2015Nothing published for this version
-
v1.123 Nov 2015Nothing published for this version
-
v1.020 Oct 2015Nothing published for this version