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

php 二维数组根据某个键值倒叙、升序排序

<?php $array = [ [ 'title' => '标题5', 'views' => 500 ], [ 'title&...

阅读全文

一个好用的php id加密解密类,适用于隐藏用户真实id。hashids

效果 <?php use Hashids\Hashids; $hashids = new Hashids(); // no padding $hashids->encode(1); #结果 jR #指定返回10个字符长度的加密串 $hashids...

阅读全文

yum 安装redis5

更新yum源 # EPEL的全称叫 Extra Packages for Enterprise Linux 。EPEL是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质...

阅读全文

欢迎留言