edoceo/lowline 问题修复 & 功能扩展

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

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

edoceo/lowline

最新稳定版本:v2024.0.309

Composer 安装命令:

composer require edoceo/lowline

包简介

Magic Global Functions

README 文档

README

This library introduces dozens of functions, all prefixed with __ to the global PHP namespace.

These routines are extensions, helpers, shorthand, wrappers around existing core PHP functions.

Example

A prime example is json_encode which has some legacy defaults. We simply change those, with our "magic" function, adding two __.

__json_encode($d);

Isn't __ Reserved?

It's (sorta) true! PHP says so.

PHP reserves all function names starting with __ as magical. It is recommended that you do not use function names with __ in PHP unless you want some documented magic functionality.

So, it's reserved, but explicitly for magic. And this library is doing "magic" in a similar way, just for functions not OO. And documented (sorta).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-24