PHPackages                             diepxuan/laravel-catalog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. diepxuan/laravel-catalog

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

diepxuan/laravel-catalog
========================

Catalog package for DXPanel

1.5.7(1mo ago)033.0k—0%MITBlade

Since Mar 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/diepxuan/laravel-catalog)[ Packagist](https://packagist.org/packages/diepxuan/laravel-catalog)[ RSS](/packages/diepxuan-laravel-catalog/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (16)Versions (25)Used By (0)

Laravel Catalog
===============

[](#laravel-catalog)

Package catalog cho DXPanel.

📚 Documentation
---------------

[](#-documentation)

- **Project Docs:** [Model Architecture](../../docs/project/model-architecture.md) - 3-layer Model pattern
- **Project Docs:** [Package Namespace Conventions](../../docs/project/package-namespace-conventions.md)

Mô tả
-----

[](#mô-tả)

Catalog package cho DXPanel (lấy từ composer.json).

Chức năng chính
---------------

[](#chức-năng-chính)

- Quản lý sản phẩm (Product) và danh mục (Category)
- Quản lý tồn kho (Inventory)
- Quản lý hệ thống: công ty, ngôn ngữ, người dùng, thông tin người dùng
- Cung cấp các service: CatalogService, CatalogFunctions
- Cung cấp các command: CatalogSync, EnvTest, Scavenger, Categories, Products
- Tích hợp với các package khác: Magento, Simba, Ronaldjack, Currency, Log, Core, Charset
- Hỗ trợ kết nối SQL Server tùy chỉnh
- Cung cấp các component view: AppLayout, SysUserInfo, SysYear, SysLanguage, SysCompany
- Cung cấp các controller cho hệ thống, bán hàng, tồn kho, website

Cài đặt / Sử dụng
-----------------

[](#cài-đặt--sử-dụng)

```
composer require diepxuan/laravel-catalog
```

Package tự động đăng ký ServiceProvider.

Sử dụng helper `catalog()` để truy cập CatalogService, `catalog_functions()` để truy cập CatalogFunctions.

Cấu trúc thư mục
----------------

[](#cấu-trúc-thư-mục)

```
laravel-catalog/
├── src/
│   ├── Commands/          # Các command Artisan
│   ├── Config/            # Configuration classes (TimerConfig)
│   ├── Connectors/        # Connector SQL Server tùy chỉnh
│   ├── Http/              # Controller, Livewire components và API
│   ├── Models/            # Các model Eloquent
│   ├── Observers/         # Observer cho model
│   ├── Providers/         # ServiceProvider
│   ├── Services/          # Các service chính (CatalogService)
│   └── View/Components/   # Các component Blade
├── database/              # Factory, seeders
├── helpers.php            # Global helpers
└── composer.json

```

Timer System
------------

[](#timer-system)

Package cung cấp hệ thống timer để lọc báo cáo theo thời gian:

- **TimerConfig** (`Config/TimerConfig.php`): Model quản lý cấu hình timer

    - `timer()`: Tạo instance timer từ session
    - `setTimer()`: Thiết lập timer và lưu session
    - `getTimer()`: Lấy timer settings từ session
    - `calculateTimeRange()`: Tính toán date range từ timeId
    - Constants: `TIME_MONTHS`, `TIME_QUARTERS`, `TIME_HALF_YEARS`, `TIME_YEAR`, `TIME_CUSTOM`
- **CatalogService** methods:

    - `timer()`: Legacy wrapper cho TimerConfig
    - `timerFrom()`: Lấy ngày bắt đầu
    - `timerTo()`: Lấy ngày kết thúc
    - `year()`: Lấy năm hiện tại từ session
- **Time format**:

    - `t01-t12`: Tháng 01-12
    - `q1-q4`: Quý 1-4
    - `h1`: 6 tháng đầu năm
    - `h2`: 6 tháng cuối năm
    - `y`: Cả năm
    - `c`: Custom (từ ... đến ...)

Liên kết đến các package liên quan
----------------------------------

[](#liên-kết-đến-các-package-liên-quan)

- diepxuan/laravel-core
- diepxuan/laravel-currency
- diepxuan/laravel-log
- diepxuan/laravel-magento
- diepxuan/laravel-ronaldjack
- diepxuan/laravel-simba
- diepxuan/php-charset

Ghi chú
-------

[](#ghi-chú)

Package này là trung tâm của hệ thống catalog, tích hợp nhiều tính năng và phụ thuộc nhiều package khác.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance91

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Recently: every ~7 days

Total

24

Last Release

43d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90fcb59bfa8097c0e0dacd05f43901adb774dc4adb6172b2b743635f8f3d1d2e?d=identicon)[caothu159](/maintainers/caothu159)

---

Top Contributors

[![caothu159](https://avatars.githubusercontent.com/u/4988663?v=4)](https://github.com/caothu159 "caothu159 (235 commits)")

### Embed Badge

![Health badge](/badges/diepxuan-laravel-catalog/health.svg)

```
[![Health](https://phpackages.com/badges/diepxuan-laravel-catalog/health.svg)](https://phpackages.com/packages/diepxuan-laravel-catalog)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
