PHPackages                             zediz/frieren - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. zediz/frieren

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

zediz/frieren
=============

Utilería PHP para manejo de archivos en bucket y envío de correos electrónicos.

v1.0.2(3mo ago)08↓90%MITPHPPHP ^8.0CI failing

Since Mar 26Pushed 3mo agoCompare

[ Source](https://github.com/Zediz/frieren)[ Packagist](https://packagist.org/packages/zediz/frieren)[ RSS](/packages/zediz-frieren/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Frieren
=======

[](#frieren)

[![Tests](https://github.com/zediz/frieren/actions/workflows/tests.yml/badge.svg)](https://github.com/zediz/frieren/actions/workflows/tests.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/4e039f5e04f3f345414cd21d91cc1083880d37ab70ca2055a18f095f257f6e85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6564697a2f6672696572656e2e737667)](https://packagist.org/packages/zediz/frieren)[![PHP Version Require](https://camo.githubusercontent.com/9c375618d85ea96d16f970ddd849e98b1802d911f945f306b3b473452be5e741/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7a6564697a2f6672696572656e2e737667)](https://packagist.org/packages/zediz/frieren)[![License](https://camo.githubusercontent.com/c78749a52d90499b3184c3bdcf81236eec7232291646d380cec7084a0ffcdef2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a6564697a2f6672696572656e2e737667)](LICENSE)

Utilería PHP para manejo de archivos en bucket y envío de correos electrónicos. Requiere PHP 8.0+.

Instalación
-----------

[](#instalación)

```
composer require zediz/frieren
```

Variables de entorno requeridas
-------------------------------

[](#variables-de-entorno-requeridas)

```
# Almacenamiento
FILE_BASE_URL=https://tu-bucket.com
FILE_STORAGE_PASSWORD=tu-token
FILE_STORAGE_FOLDER=mi-proyecto/

# Email
HOST=smtp.tuservidor.com
EMAIL=noreply@tudominio.com
EMAIL_PASSWORD=tu-password
PORT=587
SENDER_NAME=Tu Empresa
PRODUCTION=false

# Solo en desarrollo
TEST_EMAIL=dev@tudominio.com

# Solo en producción (BCC de calidad)
QC_EMAIL=qc@tudominio.com
```

Uso
---

[](#uso)

### Manejo de archivos

[](#manejo-de-archivos)

```
use Zediz\Frieren\Frieren;

// Subir un archivo desde $_FILES
$resultado = Frieren::saveFile($_FILES, '/usuarios/avatars');
// $resultado => ['path' => '...', 'filename' => '...', 'size' => ..., 'mime' => '...']

// Mover un archivo dentro del bucket
$movido = Frieren::moveFile('/usuarios/temp/foto.jpg', '/usuarios/definitivo');

// Eliminar un archivo
$eliminado = Frieren::deleteFile('mi-proyecto/usuarios/foto.jpg');
```

### Envío de correos

[](#envío-de-correos)

```
use Zediz\Frieren\Frieren;

// Enviar correo directo
$enviado = Frieren::sendEmail(
    recipients: ['Juan Pérez' => 'juan@ejemplo.com'],
    subject: 'Bienvenido',
    body: 'Hola Juan'
);

// Usar un template HTML
$body = Frieren::parseEmailTemplate('bienvenida', [
    '||NOMBRE||' => 'Juan',
    '||LINK||'   => 'https://miapp.com/activar/abc123',
]);

Frieren::sendEmail(['Juan Pérez' => 'juan@ejemplo.com'], 'Bienvenido', $body);
```

Los templates deben estar en la carpeta `email_templates/` en la raíz del proyecto:

```
tu-proyecto/
├── email_templates/
│   ├── bienvenida.html
│   └── recuperar-password.html
├── composer.json
└── ...

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG.md](CHANGELOG.md) for recent changes.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance82

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

91d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.1PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10022822?v=4)[HiramH](/maintainers/HiramH)[@hiramh](https://github.com/hiramh)

---

Tags

phputilityemailbucketfile storagephpmailer

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zediz-frieren/health.svg)

```
[![Health](https://phpackages.com/badges/zediz-frieren/health.svg)](https://phpackages.com/packages/zediz-frieren)
```

###  Alternatives

[ivantcholakov/codeigniter-phpmailer

A CodeIgniter 3 compatible email-library powered by PHPMailer.

25214.2k](/packages/ivantcholakov-codeigniter-phpmailer)[rmrevin/yii2-postman

Mail module for Yii2.

2612.3k](/packages/rmrevin-yii2-postman)

PHPackages © 2026

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