lavalite

文档地址:https://lavalite.org/docs/master/installation
github地址:https://github.com/LavaLite/cms

基本要求:
– PHP >= 7.1
– OpenSSL PHP Extension
– PDO PHP Extension
– Mbstring PHP Extension
– Tokenizer PHP Extension
– Fileinfo PHP Extension
– GD Library
– Imagick PHP Extension

安装:
composer create-project LavaLite/cms –prefer-dist website
运行命令:
php artisan lavalite:install

php artisan key:generate // run this command if key not generated while installing.

后台地址:http://path-to-route-folder/public/admin
用户界面:
http://path-to-route-folder/public/user
User: user@lavalite.org
Password: user@lavalite

web页面:
http://path-to-route-folder/public/client
User: client@lavalite.org
Password: client@lavalite

intervention/image处理IOS上传图片翻转问题

#安装 $ composer require intervention/image <?php use Intervention\Image\ImageManagerStatic as Image; //test.png要处理的图片路径 Image::make(&...

阅读全文

使用php hdfs 读取大文件

最近用hdfs上传了一个2.8g的视频,发现用原始的read方式会把整个视频加载到内存,会非常慢。所以使用hdfs的web api里面的按文件偏移量加载的方式。 参考:htt...

阅读全文

php获取字符串中的数字

$str = 'aasd222ssdd32'; $str = preg_replace("/[^0-9]/","",$str); echo $str;

阅读全文

欢迎留言