arx/utils
最新稳定版本:4.2.2
Composer 安装命令:
composer require arx/utils
包简介
Arx Utils classes to use in any kind of projects
README 文档
README
Features
- Some usefull php class and methods (inspired by Laravel) to use in any kind of PHP projects
Getting started
Requirements
- PHP > 5.3
- Composer
Installation
In the require key of composer.json file add the following
"arx/utils": "dev-master"
$ composer update
require 'vendor/autoload.php'
How to use it
require 'vendor/autoload.php'; use Arx\Utils\Utils; # Debug method Utils::pre(['test']); # Debug with die Utils::predie('test'); # Make an alias helper Utils::alias('dd', 'Utils::predie'); # Manipulate an array ## Merge recursively Arx\Utils\Arr::merge(['test' => ['foo1']], ['test' => ['foo2']]); # Manipulate an image ## Resize an image to best fix max width, max height Arx\Utils\Image::load('$$path$$')->best_fit(400, 400)->save($$dest_path$$); ## Resize an image to best fix max width, max height and output Base64 string Arx\Utils\Image::load('$$path$$')->fit_to_width(400)->outputBase64(); # output as base64 to load directly from img src
Release Notes
Version 4.2.0
- use Laravel tagging version to simplify the version correspondance (so yes we jump directly to 4.2 instead of 1.0)
License
Arx Utils is free software distributed under the terms of the MIT license
Aditional information
Any questions, feel free to contact me or ask here
Any issues, please report here
统计信息
- 总下载量: 88
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-07