realejo/laminas-base

Laminas项目中常用的类库。

4.1.0 2021-12-08 13:31 UTC

This package is auto-updated.

Last update: 2024-09-08 19:30:52 UTC


README

Build Status Coverage Status

由Realejo开发的,用于在Laminas项目中使用的一些常用类的库。

服务

用于使用TableGateway和常见功能的模型。

允许创建一个deleted字段,其中记录被标记为已删除,但不会从数据库表中被永久删除。

Service MPTT

修改后的前序树实现。适合处理层次数据。

http://www.sitepoint.com/print/hierarchical-data-database

Utils\MailSender

用于通过smtp发送电子邮件的类。

需要在/config/autoload/config_email.php文件夹中设置配置,或者在创建对象时传递。

示例文件

<?php
return [
    'name'       => 'Nome do remetente',
    'email'      => 'email@do.remetente',
    'returnPath' => 'email@do.remetente',
    'host'       => 'smtp.dominio.com',
    'username'   => '',
    'password'   => '',
    'port'       => '2525',
];