承接 gianarb/angry 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

gianarb/angry

最新稳定版本:1.0.0

Composer 安装命令:

composer require gianarb/angry

包简介

A collection of traits to defend classes from mis-use.

README 文档

README

Build Status

This library is a collection of traits to stop mis-use of your classes. Based on @ocramius talk "Defensive Programming".

Installation

composer install gianarb/angry "^1.0"

Getting Started

  • Block clone of a class use GianArb\Angry\Unclonable trait.
  • Block invoking of a class e.g. $className(); use GianArb\Angry\Uninvokable trait.
  • Block serialization of a class use GianArb\Angry\Unserializable trait.
  • Block all of the above use GianArb\Angry\ClassDefence trait.

Remember: the best way to write code is be lazy! http://blogoscoped.com/archive/2005-08-24-n14.html.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-26