appwrite / appwrite/php-clamav

🚀 Feature: DSN support

Open
#28 1 comment 2 reactions 1 assignee Claimed by @joeyouss View on GitHub
Dominant language
PHP
Stars
73
Forks
31
Avg merge
30m
Merged PRs (30d)
2

Description

### 🔖 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?

- [X] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.