Download the PHP package zxf/xfadmin without Composer

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

XfAdmin

基于 INSPINIA v4.1.0 后台模板拆分的 PHP 组件化后台 UI 扩展包 · 216 个组件(228 个注册别名) · 纯原生 JS(不依赖 Node 构建)· 离线可用 · 支持 Laravel 11/12 与 ThinkPHP 8+ · 要求 PHP ≥ 8.2

XfAdmin 把 INSPINIA 后台模板的布局、导航、表格、表单、图表、UI 与业务组件全部拆分为 可独立调用的 PHP 类。每个组件 XfAdmin::card([...]) 即渲染一段语义化、可嵌套、资源自管理的 HTML, 让你在任意 PHP 项目中“一行代码”拼出完整后台界面。


✨ 特性


📦 组件一览(共 216 个组件 / 228 个注册别名)

完整参数与示例见 组件总览。

分类 数量 组件
布局与页面 15 page landing authPage errorPage comingSoon maintenance emptyState lockScreen sidenav topbar topNav pageTitle footer customizer themeLayout
导航 1 menu
栅格 2 row col
UI 基础 50 card statCard alert badge button dropdown modal offcanvas tabs accordion progress spinner pagination listGroup avatar avatarGroup icon toast timeline carousel breadcrumb tooltip popover placeholder collapse scrollspy ratio rating ribbon chip stepper descriptionList loadingButton divider kbd media callout skeleton countdown countUp backToTop codeBlock toggle empty toolbar searchBox
表单 20 form input textarea select check radio slider dateRangePicker dateRange editor upload colorPicker tags maskedInput wizard passwordStrength segmentedControl matrixInput autocomplete signaturePad
图表与地图 7 apexChart apexTree apexSankey eChart vectorMap leafletMap googleMap
表格 4 table dataTable tableTree editableTable
数据 / 业务 81 widget metricCard terms pricingCard faq profileHeader profilePage productCard kanban chatBox invoiceTable invoiceList mailList fileManager activityFeed gallery blogList searchResults permissionMatrix apiKeys commentThread emailCompose companies productCategories productAdd sellerDetails article projectActivity contactCard companyCard clients sellers users products companyList departments employees roles permissions notifications messages tasks projects tickets orders invoices payments refunds shipments coupons reviews comments posts pages media_library tagsCloud categories menus settings logs analytics reports dashboard profile accountSettings analyticsDashboard appManage attributes cartSummary chatConversationPanel chatMessageBubble checkout ecommerceDashboard emailTemplate eventCalendar filePreview knowledgeBase leadManagement liveChat notificationCenter orderDetail paymentGateway productComparison productDetail productReview projectBoard projectKanban quizBuilder surveyBuilder userDirectory userProfile videoGallery warehouse workflow 等
杂项 17 calendar treeView nestable lightbox tour clipboardButton clipboard sweetAlert raw tinycon idleTimer pdfViewer textDiff masonry animate hotkey infiniteScroll

组件别名:dateRange / dateRangePicker、clipboard / clipboardButton 互为别名,调用任一均可。


🚀 快速开始

安装

Laravel 11 / 12

服务提供者与门面通过 extra.laravel 自动注册。发布静态资源与配置:

在控制器中:

在 Blade 中:

ThinkPHP 8

在 config/service.php 注册服务:

发布资源:

原生 PHP(独立使用)

参考 demo/ 目录:配置 XfAdmin::config() 后直接 echo XfAdmin::page([...]) 即可,无需框架。

运行演示(资源会自动从 /zxf/xfadmin 前缀自托管,无需发布):

若浏览器中 CSS/JS 全部 404,请检查资源前缀是否为 /zxf/xfadmin,以及资源是否发布/自托管(见 资源与去重机制 · 排错)。


🧱 核心概念

1. 组件即方法

XfAdmin::<组件名>(array $options) 返回一个组件对象,(string) 转换或 echo 时渲染为 HTML。

2. 组件可嵌套

任何接受 HTML 的字段(body / content / footer …)都能直接塞入另一个组件:

3. 数据驱动

所有列表型组件接受统一结构的数组,例如菜单:

4. 资源自动管理

组件在渲染时把自身所需的 CSS/JS 登记到全局资源管理器。整页组件(page / authPage)会在 <head> 与页尾统一输出并自动去重。手动布局时用:

5. 门面全局方法

除渲染组件外,门面还提供:config() page() component() extend() has() componentList() version() asset() head() scripts() html()。例如:


🎨 主题与资源

外观(skin / mode / layout)由 config.js 在浏览器端持久化;资源路径 assets_url 可在配置中 改为 CDN 前缀,所有资源 URL 自动附加 ?v={version} 做缓存刷新。详见 资源与去重机制。

🔒 安全模型

所有动态文本默认转义,内联脚本数据经 HEX 转义,前端对用户输入再做二次转义,形成纵深防御。 暴露给 JS 的 API 仅接受可信数据。详见 安全与转义规范。

🧩 扩展自定义组件

继承 zxf\XfAdmin\Component 实现 render(),调用 XfAdmin::extend('myWidget', MyWidget::class) 即可像内置组件一样使用。 Laravel 用户可注册 Blade 指令与服务提供者。详见 ThinkPHP 集成。


📚 文档

文档 说明
组件总览 全部 216 个组件的参数、事件与门面全局方法
组件详细参考 每个组件的数据输入/输出、前端控件(data-xf)与可复制用法示例
布局与页面 page / authPage / errorPage 等整页骨架与布局变体
表格 静态 table 与全功能 dataTable
表单 字段、富文本、上传、向导、密码强度等
图表 ApexCharts / ECharts / 矢量地图 / Leaflet / 组织树 / 谷歌地图
多语言 i18n data-lang 翻译、语言切换与 Topbar 联动
资源与去重机制 资源加载、去重、版本号与 CDN
安全与转义规范 XSS 防护与转义助手
自定义与扩展 编写并注册自定义组件、Laravel 集成
组件开发指南 生命周期、基类方法、资源/事件、自测、文档生成、wsf 同步
主题与外观定制 后端配置 / 前端持久化 / 明暗原理 / 配色 / 布局方向
DataTables 服务端协议 标准响应 / DataSet / 紧凑协议 / 单元格渲染 / 批量
DataTable 高级用法 富单元格渲染器 / 单元格事件系统 / 自定义搜索组件类型 / 固定列
ThinkPHP 集成 ThinkPHP 8 安装、发布与用法
部署与发布 安装、资源托管、版本管理、CI、wsf 同步
常见问题与排错 JS 报错 / 破图 / 下拉 / XSS / 样式冲突 / 403
版本升级指南 升级流程与破坏性变更声明
页面映射 INSPINIA 页面 → 组件覆盖矩阵
更新日志 版本迭代记录

🌐 浏览器兼容

支持 Chrome / Edge / Firefox / Safari 的最新 2 个稳定版本。不兼容 IE(依赖 Bootstrap 5 与现代 DOM API)。


🆕 更新日志

见 CHANGELOG.md。

📄 许可

MIT © zxf


All versions of xfadmin with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
ext-mbstring Version *
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 zxf/xfadmin contains the following files

Loading the files please wait ...