codenzia/project-essentials 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codenzia/project-essentials

Composer 安装命令:

composer require codenzia/project-essentials

包简介

Essential project utilities and helpers for Laravel applications.

README 文档

README

Essential UI components, form components, and utilities for Laravel and Filament v4 projects — including progress indicators, carousels, pagination, and an icon picker.

Features

  • Progress Component — Circular SVG progress indicator with gradient colors
  • Carousel Component — Swiper.js-powered carousel for Blade templates
  • CarouselEntry — Filament infolist entry with dynamic card schemas and full Swiper configuration
  • Pagination — Custom Laravel pagination view with RTL and dark mode support
  • IconPicker — Filament form select with 45+ categorized Heroicons
  • Dark Mode — All components support dark mode
  • RTL Support — Right-to-left layout support

Requirements

  • PHP 8.3+
  • Laravel 12+
  • Filament 4.x

Installation

Install via Composer:

composer require codenzia/project-essentials

Publish the config (optional):

php artisan vendor:publish --tag="project-essentials-config"

Publish views for customization (optional):

php artisan vendor:publish --tag="project-essentials-views"

Components

Progress

A circular progress indicator with SVG arc and gradient colors.

<x-project-essentials::progress
    :progress="75"
    color="primary"
    label="Completion"
    :show-text="true"
/>
Prop Type Default Description
progress float 0 Progress percentage (0-100)
color string 'primary' CSS color variable name
label string 'Progress' Display label
showText bool true Show percentage text

Carousel (Blade)

A simple Swiper.js carousel for Blade templates.

<x-project-essentials::carousel
    :slides="$slides"
    :autoplay="true"
    :indicators="true"
    :controls="true"
/>
Prop Type Default Description
slides array [] Array of slide content
autoplay bool false Enable autoplay
indicators bool true Show pagination dots
controls bool true Show prev/next arrows

CarouselEntry (Filament Infolist)

An advanced carousel component for Filament infolists with dynamic card schemas.

use Codenzia\ProjectEssentials\View\Components\CarouselEntry;

CarouselEntry::make('items')
    ->slidesPerView(3)
    ->navigation()
    ->pagination()
    ->autoplay()
    ->autoplayDelay(3000)
    ->effect('slide')
    ->height(300)
    ->cardSchema(function (Schema $schema, ?Model $record) {
        return $schema->components([
            TextEntry::make('title'),
            TextEntry::make('description'),
            ImageEntry::make('image'),
        ]);
    })

Available methods:

Method Description
slidesPerView(int) Number of visible slides
centeredSlides(bool) Center active slide
height(int) Container height in pixels
navigation(bool) Show prev/next arrows
pagination(bool) Show pagination
paginationType(string) 'bullets', 'fraction', 'progressbar'
paginationClickable(bool) Clickable pagination bullets
scrollbar(bool) Show scrollbar
autoplay(bool) Enable autoplay
autoplayDelay(int) Autoplay delay in ms
effect(string) 'slide', 'fade', 'cube', 'coverflow', 'flip', 'cards'
cardSchema(Closure) Dynamic schema builder for each slide

Pagination

A custom pagination view with mobile-friendly layout, RTL support, and dark mode.

{{ $items->links('project-essentials::components.pagination') }}

Features:

  • Mobile: simplified prev/next with result count
  • Desktop: full page numbers with prev/next
  • Active page highlighted with brand color
  • RTL-aware layout

IconPicker (Form Component)

A searchable Filament select field pre-loaded with 45+ categorized Heroicons.

use Codenzia\ProjectEssentials\Forms\Components\IconPicker;

IconPicker::make('icon')
    ->label('Icon')
    ->required()

Categories include: Education, Buildings, Location, Transport, Health, Shopping, Communication, Nature, Utilities, Recreation, People, and more.

Returns the icon string value (e.g., 'heroicon-o-home').

Plugin Registration

Register the plugin in your Filament panel provider:

use Codenzia\ProjectEssentials\ProjectEssentialsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            ProjectEssentialsPlugin::make(),
        ]);
}

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固