sjrdco/housekeeping 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sjrdco/housekeeping

最新稳定版本:1.0.1

Composer 安装命令:

composer require sjrdco/housekeeping

包简介

README 文档

README

Packagist Packagist

Housekeeping

Housekeeping

Housekeeping is an open-source library meant to provide your PHP project with basic functionalities. This way your project can be at its safest right from the start.

Installation

Update your composer.json file to include this package as a dependency

"sjrdco/housekeeping": "dev-master"

Security usage

You can clean incoming data by calling the cleanUp() function.

$cleaned_input = Housekeeping\Security::cleanUp($input);

You can encrypt input by calling the encrypt() method. This method returns an object containing the encrypted data, an initialization vector and the encryption key:

$enc = Housekeeping\Security::encrypt($input);

You can also decrypt a string by calling the decrypt() method when a key an iv are available.

$decrypted_input = Housekeeping\Security::decrypt($enc->encrypt, $enc->key, $enc->iv);

Logging usage

You can log an action by calling the logAction() function. This function writes a log per entity. This means that it'll create a folder per day and this folder will contain logs for each entity.

Housekeeping\Logging::logAction($message, $entity);

License

Housekeeping is licensed under the MIT License, please see the LICENSE file. I don't personally require attribution, but if you ever see me just buy me a coffee!

统计信息

  • 总下载量: 1.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-09-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固