PHPackages                             devopstools/laracast-table - 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. devopstools/laracast-table

ActiveLibrary

devopstools/laracast-table
==========================

A reusable Laravel package for testing, validating, and managing form workflows and validation logic.

01↑2900%PHP

Since Aug 25Pushed todayCompare

[ Source](https://github.com/alihumza5426/laracast-table)[ Packagist](https://packagist.org/packages/devopstools/laracast-table)[ RSS](/packages/devopstools-laracast-table/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Khan Forms - Laravel Form &amp; Student Fee Manager Explorer Package
====================================================================

[](#khan-forms---laravel-form--student-fee-manager-explorer-package)

`khan/forms` is a reusable Laravel package for querying database records (such as `student_fee_managers` by date), testing workflows, and validating forms.

---

🌟 Key Features
--------------

[](#-key-features)

- **Student Fee Manager Date Explorer**: Interactive dashboard (`/forms/test`) with date picker and search button to retrieve the latest 10 entries from `student_fee_managers` table for any particular date.
- **Direct Query API**: `Forms::getStudentFeeEntries($date, 10)` to query fee records from any controller or service.
- **Consistent Validation API**: Unified result payload `['passed', 'message', 'errors', 'data']` wrapping Laravel's validation engine.
- **Dynamic Form Registry**: Register custom testing closures and handlers anywhere in your application.
- **Custom Form Classes**: Dedicated form test classes implementing `Khan\Forms\Contracts\FormTest`.
- **Artisan Generator &amp; Runner**: `php artisan make:form` and `php artisan forms:test`.
- **Zero-Vendor Modifications**: Easily extend using Macros, Service Providers, or custom form classes.

---

🌐 Web Interface (Student Fee Manager Date Explorer)
---------------------------------------------------

[](#-web-interface-student-fee-manager-date-explorer)

Navigate to: 👉 **`http://127.0.0.1:8000/forms/test`** (or `http://localhost/new_sls/public/forms/test`)

### How to Use the Date Explorer:

[](#how-to-use-the-date-explorer)

1. Select a date using the date picker (or click quick date buttons: *Today*, *Yesterday*, *Sample*).
2. Choose a specific date column (e.g. `created_at`, `due_date`, `paid_date`, `fee_month`, `issue_date`) or keep **Auto**.
3. Click **"Search Fee Entries"**.
4. The page displays the **latest 10 entries** from `student_fee_managers` in a formatted table with:
    - Challan / Entry ID
    - Student ID
    - Title
    - Total Amount, Fee, Fine, Discount
    - Status (Paid / Unpaid / Pending badges)
    - Fee Month, Due Date, Created At
5. Toggle the **"Raw JSON"** viewer to inspect the raw database records.

---

🚀 Programmatic Usage (In PHP / Controllers)
-------------------------------------------

[](#-programmatic-usage-in-php--controllers)

### Query Fee Entries by Date

[](#query-fee-entries-by-date)

```
use Khan\Forms\Facades\Forms;

// Get latest 10 entries for a specific date
$result = Forms::getStudentFeeEntries('2026-06-15', 10);

if ($result['passed']) {
    $records = $result['data'];  // Array of database rows
    $count = $result['count'];   // Number of rows found
}

// Or query any table by date:
$result = Forms::fetchLatestByDate('student_fee_managers', '2026-06-15', 10, 'created_at');
```

---

📦 Installation &amp; Setup
--------------------------

[](#-installation--setup)

1. **Path Repository in Root `composer.json`**:

    ```
    "repositories": [
        {
            "type": "path",
            "url": "packages/khan/forms",
            "options": {
                "symlink": true
            }
        }
    ]
    ```
2. **Composer Installation**:

    ```
    composer require khan/forms:@dev
    ```
3. **Publish Configuration &amp; Views**:

    ```
    php artisan vendor:publish --tag=forms-config
    php artisan vendor:publish --tag=forms-views
    ```

---

🧪 Running Automated Tests
-------------------------

[](#-running-automated-tests)

```
php vendor/phpunit/phpunit/phpunit packages/khan/forms/tests
```

**Results:**

```
OK (19 tests, 60 assertions)

```

###  Health Score

20

↑

LowBetter than 12% of packages

Maintenance65

Regular maintenance activity

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/82c7cbee6228b85b1ce41b06bfee51d8dd9d98af3b160031512d5ef6a57ac19a?d=identicon)[devops5426](/maintainers/devops5426)

### Embed Badge

![Health badge](/badges/devopstools-laracast-table/health.svg)

```
[![Health](https://phpackages.com/badges/devopstools-laracast-table/health.svg)](https://phpackages.com/packages/devopstools-laracast-table)
```

PHPackages © 2026

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