Download the PHP package epnz/block without Composer

On this page you can find all versions of the php package epnz/block. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package block

EPower Network Zealot Project Block

EPower Network Zealot 项目的小组件,非业务代码

安装

composer require epnz/block

使用

<?php

require __DIR__ . '/vendor/autoload.php'; 

// 请求端IP
// 以下与block()->request()->ip();是等效的,request() 是为了方便以后若有需要,可以传入参数
block()->request->ip();

模块

文字 'character'

- randChar 得到随机字符串

block()->character->randChar($length);

- byteFormat 格式化容量

block()->character->byteFormat($size, $dec);

- uuid 生成一个唯一ID

block()->character->uuid($trim);

日期 / 时间 'date'

- timeComparison 一个时间戳与当前时间的比较

block()->date->timeComparison($time, $form);

判断 'datermine'

- isMobile 是否手机访问

block()->datermine->isMobil();

输出 'export'

- json 输出 Json HTTP 页面

block()->export->json($param, $code);

Json 'json'

- isJson 判断是否为 Json

block()->json->isJson($json, $option);

- jsonToArray Json 转数组

block()->json->jsonToArray($json);

- arrayToJson 数组转 Json

block()->json->arrayToJson($arr);

消息 'message'

- outPut 组装消息数组

block()->message->outPut($param, $data);

数字 'number'

- padWithZeros 数字补零

block()->message->padWithZeros($param, $data);

请求 'request'

- curlPost Curl 的 Post 请求

block()->request->curlPost($url, $param, $header, $cookieFile);

- curlGet Curl 的 Get 请求

block()->request->curlGet($url, $param, $cookieFile);

- server $_SERVER 信息优化

block()->request->server($param);

- ip 获取客户端真实IP

block()->request->ip();

- agentOs 判断浏览器代理类型

block()->request->iagentOs($str);

请求 'tools'

- getImagesUrl 获取文本中所有图片

block()->tools->getImagesUrl($content, $order);

标准 / 规范

HTTP 响应代码 | PHP 标准规范(PSR 中文翻译) . 更多PHP标准规范

版权信息

Copyright © 2018-2024 EPNZ.com EPower Network Zealot


All versions of block with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package epnz/block contains the following files

Loading the files please wait ...