PHPackages                             acseo/cegid-rfe-connect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. acseo/cegid-rfe-connect

ActiveLibrary

acseo/cegid-rfe-connect
=======================

0144PHP

Since Feb 3Pushed 1y ago2 watchersCompare

[ Source](https://github.com/acseo/cegid-rfe-connect)[ Packagist](https://packagist.org/packages/acseo/cegid-rfe-connect)[ RSS](/packages/acseo-cegid-rfe-connect/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

acseo/cegid-rfe-connect
=======================

[](#acseocegid-rfe-connect)

This PHP package provides functionality to interact with Azure Blob Storage using SAS tokens. It includes authentication, listing files in a folder, and retrieving a file from storage.

📦 Installation
--------------

[](#-installation)

To install this package, run:

```
composer require acseo/cegid-rfe-connect
```

This will install all required dependencies, including:

- `symfony/http-client`
- `symfony/cache`
- `symfony/dotenv` (for testing)
- `phpunit/phpunit` (for testing)

🚀 Usage
-------

[](#-usage)

### Authentication

[](#authentication)

The `Auth\Token` class handles authentication and retrieves an access token from the API.

```
$httpClient = HttpClient::create();
$cache = new FilesystemAdapter();

$tokenService = new Auth\Token($httpClient, $cache, $clientId, $username, $password, $tokenUrl, $cacheDuration);
$token = $auth->getToken();
```

### Fetching a SAS Token

[](#fetching-a-sas-token)

The `Auth\SasToken` class retrieves a SAS token to access Azure Blob Storage.

```
$sasTokenService = new Auth\SasToken($httpClient, $cache, $tokenService, $sasTokenUrl, $cacheDuration);
$sasToken = $sasTokenService->getSasToken($tenantId, $storagePath);
```

### Listing Files in a Folder

[](#listing-files-in-a-folder)

The `RFE\Folder\ListFiles` class lists files within a given folder in the blob storage.

```
$listFiles = new RFE\Folder\ListFiles($httpClient, $sasToken);
$files = $listFiles->listFiles($'some-folder/');
```

### Retrieving a File

[](#retrieving-a-file)

The `RFE\File\GetFile` class fetches the contents of a file stored in Azure Blob Storage.

```
$getFile = new RFE\File\GetFile($httpClient, $sasToken);
$fileContent = $getFile->getFile('some-folder/myfile.txt');
```

🧪 Running Tests
---------------

[](#-running-tests)

Create a `.env.test` file by copying the `.env.test.dist` template:

```
cp .env.test.dist .env.test
```

Then, update `.env.test` with the required values:

```
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
USERNAME=your_username
PASSWORD=your_password
TOKEN_URL=your_token_url
CACHE_DURATION=3600
SAS_TOKEN_URL=your_sas_token_url
TENANT_ID=your_tenant_id
STORAGE_PATH=your_storage_path
FILE_PATH=your_file_path
FOLDER_PATH=your_folder_path
```

To execute the PHPUnit test suite, run:

```
composer test
```

This will run unit tests for authentication, SAS token retrieval, file listing, and file fetching.

---

### 📌 Notes

[](#-notes)

- Ensure your `.env.test` file contains valid credentials before running tests.
- Check the Azure Blob Storage permissions when using SAS tokens.

### 🔗 References

[](#-references)

- [Azure Storage REST API](https://learn.microsoft.com/en-us/rest/api/storageservices/)
- [Symfony HttpClient](https://symfony.com/doc/current/components/http_client.html)
- [PHPUnit Documentation](https://phpunit.de/)

Enjoy using `acseo/cegid-rfe-connect`! 🚀

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a21f9d389ad9d714e1e84226a4b2def0417c9bfec60ea43c22104a8e93a654da?d=identicon)[npotier](/maintainers/npotier)

---

Top Contributors

[![npotier](https://avatars.githubusercontent.com/u/1151094?v=4)](https://github.com/npotier "npotier (4 commits)")

### Embed Badge

![Health badge](/badges/acseo-cegid-rfe-connect/health.svg)

```
[![Health](https://phpackages.com/badges/acseo-cegid-rfe-connect/health.svg)](https://phpackages.com/packages/acseo-cegid-rfe-connect)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
