php-clamav icon indicating copy to clipboard operation
php-clamav copied to clipboard

🚀 Feature: DSN support

Open yani opened this issue 2 years ago • 1 comments

🔖 Feature description

Implement DSN connection strings.

Examples:

unix:///var/run/clamav/clamd.ctl
tcp://localhost:3310

And here's an example of how it could look.

$clam = new Connection('tcp://localhost:3310');  // returns -> new Network('localhost', 3310)
$version = $clam->version();

🎤 Pitch

I would like to use a single environment variable that would include the type of connection and the connection details. I'd like to give users or administrators the option to use the Network class or Pipe class with a single string.

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

yani avatar May 27 '23 01:05 yani

Thanks for opening - keeping this open for now for gathering any feedback/comments from community

joeyouss avatar May 30 '23 17:05 joeyouss