songxuan/php-fun

PHP Common Functions

v1.0.1 2022-07-28 10:09 UTC

This package is auto-updated.

Last update: 2024-10-28 14:57:57 UTC


README

安装

composer require songxuan/php-fun

下面写两个例子

<?php

require_once './vendor/autoload.php';
use SongXuan\PhpFun;

//生成32位以内随机字符串 
//$len 字符串长度,默认10位
echo PhpFun::uuid32($len);

//手机号正则
//$phone 手机
var_dump(PhpFun::isPhone($phone));

更多方法

https://www.kancloud.cn/sx555/php-fun/3028937