Download the PHP package imzhi/jf-admin without Composer

On this page you can find all versions of the php package imzhi/jf-admin. 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 jf-admin

jf-admin 是基于 Laravel 5.5+ 的扩展包(支持 Laravel 5.5+, 6.x, 7.x),助你构建自己的后台管理系统。

:star2: 演示站点:

https://jfadmin.imzhi.me/jfadmin/login,用户名:admin,密码:admin。

:star2: 演示截屏:

内容:

简介

jf-admin 提供后台登录、权限控制和操作日志查看等功能。权限控制采用 RBAC,包括成员管理、角色管理、权限管理。

前端主题使用 inspinia。

文档

目录结构

依赖包

包名 约束版本 说明
mews/captcha ^2.2 图形验证码
spatie/laravel-activitylog ^2.8 操作日志记录
spatie/laravel-permission ^2.37 权限控制
doctrine/annotations ^1.8 注解解析

安装说明

发布命令

发布必要文件到项目中:

安装命令

首先会检查配置文件 config/jfadmin.php 是否存在,安装时需要用到。

执行迁移文件,并且生成初始的管理员用户(默认用户名:admin,密码:admin)。

新建目录(默认为 app/JFAdmin),并生成后台首页控制器类文件(HomeController)和路由文件(routes.php):

卸载说明

输入上面命令后会弹出确认提示,键入 yes 后,会开始卸载操作,将会删除:

请注意:卸载命令不会去更改数据表。卸载成功后如需重新安装请先执行发布命令再执行安装命令。

配置项

title

站点标题

caption

站点标题缩写(小屏浏览时用到)

welcome

欢迎语句(后台首页右上角的欢迎语句)

wallpaper

登录页面的背景图(支持 URL 和项目可访问的路径)

__wallpaper_class__

登录页面标题文件的 CSS class

directory

安装目录(jfadmin::install 命令生成文件将要安装的目录)

操作日志

操作日志记录使用的 laravel-activitylog 扩展包,数据表是 activity_log。

jf-admin 新增两个响应宏:suc 和 fai,分别对应成功响应宏和失败响应宏,当调用成功响应宏时会进行操作日志的记录。

请注意:这两个响应宏只适用于 Ajax 操作返回响应数据。

超级管理员角色

默认的超级管理员角色名称是 Super Admin,也可以在配置文件中设置多个超级管理员角色名称。

初始管理员账号就是超级管理员,可以进行任何操作。

中间件

jf-admin 有两个重要的中间件:jfadmin.auth,jfadmin.permission。

jfadmin.auth 检测用户会话登录状态和用户账号的状态。

jfadmin.permission 根据路由名称检测用户的操作权限。

其它命令

重置密码

输入要修改的管理员用户名,并输入密码、重复密码。

环境

安装

第一步

使用 Composer 安装 jf-admin 扩展包:

第二步

发布 laravel-permissionlaravel-activitylog 扩展包的迁移文件,并执行迁移命令:

发布 mews/captcha 扩展包的配置文件:

修改配置文件 config/captcha.php 的 length,修改成 4:

第三步

发布 jf-admin 扩展包的文件,并执行安装命令:

经过以上三步,扩展包安装成功。

访问 URL 为:http://xxx.xxx/jfadmin/login,默认用户名:admin,密码:admin。

许可证

jf-admin 扩展包使用 MIT 许可证。


All versions of jf-admin with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
mews/captcha Version ^2.2|~3.0
spatie/laravel-activitylog Version ^2.8|~3.0
spatie/laravel-permission Version ^2.37|~3.0
doctrine/annotations Version ^1.8
laravel/framework Version ~5.5|^6.0|^7.0
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 imzhi/jf-admin contains the following files

Loading the files please wait ....