PHPackages                             noking50/module\_single\_page - 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. noking50/module\_single\_page

ActiveLibrary

noking50/module\_single\_page
=============================

The module of single page

1.0.1(7y ago)022PHP

Since Jun 26Pushed 7y agoCompare

[ Source](https://github.com/noking50/module_single_page)[ Packagist](https://packagist.org/packages/noking50/module_single_page)[ RSS](/packages/noking50-module-single-page/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Module single page
==================

[](#module-single-page)

single page

Installing
----------

[](#installing)

### 1. Install from composer

[](#1-install-from-composer)

```
composer required noking50/module_single_page

```

### 2. Publish resoure

[](#2-publish-resoure)

```
php artisan vendor:publish

```

It would generate below files config/module\_single\_page.php resources/lang/vendor/module\_single\_page/ resources/views/vendor/module\_single\_page/ resources/enum/module\_single\_page-content\_type.php

### 3. configure file config/module\_single\_page.php

[](#3-configure-file-configmodule_single_pagephp)

- set data table name

```
'datatable' => 'module_single_page'

```

- set available attach file extension

```
'file_ext' => 'pdf|doc|docx|xls|xlsx|zip',

```

- set each using single page configure

```
'groups' => [
    'group-name' => [
        'validation' => [ // input field status 0: hidden, 1: visible, 2: required
            'files' => 1,
            'title' => 2,
        ],
    ],
    'other_group' => [],
    ...
],

```

### 4. migration

[](#4-migration)

```
php artisan migrate

```

create single page database table, table name will be config file settings above

Usage
-----

[](#usage)

### Package method

[](#package-method)

- get data detail

```
$output = ModuleSinglePage::detailBackend($group);

```

$output is an array contains key: 'dataRow\_module\_single\_page' - Model data from given id 'form\_choose\_lang' - list of all avaliable language and indicate each language has setting value 'module\_group' - $group value

- get data detail and other required data for edit page

```
$output = ModuleSinglePage::detailBackendEdit($group);

```

$output is an array contains key: 'dataRow\_module\_single\_page' - Model data from given $group 'form\_choose\_lang' - list of all avaliable language and indicate each language has setting value 'module\_group' - $group value

- get data detail frontend

```
$output = ModuleSinglePage::detailFrontend($group);

```

$output is an array contains key: 'dataRow\_module\_single\_page' - Model data from given $group 'module\_group' - $group value

- edit data

```
$output = ModuleSinglePage::actionEdit($group);

```

$output is an array contains key: 'msg' - success message

### default controller

[](#default-controller)

using a default controller in Module\\Controllers\\ModuleSinglePageController

- set Route like below

```
Route::get('/index', [
    'uses' => "\\Noking50\\Modules\\SinglePage\\Controllers\\ModuleSinglePageController@index",
    'module_single_page_group' => 'aboutus',
]);
Route::get('/edit', [
    'uses' => "\\Noking50\\Modules\\SinglePage\\Controllers\\ModuleSinglePageController@edit",
    'module_single_page_group' => 'aboutus',
])

```

'single\_group' is which group setting in config will be used

- set view set views in resources/views/vendor/module\_single\_page/

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~6 days

Total

2

Last Release

2869d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f84995f10f0ff53eef8966b9284b81fb5bf641b9611923cde4282fb8a1c48bc?d=identicon)[noking50](/maintainers/noking50)

---

Tags

laravel

### Embed Badge

![Health badge](/badges/noking50-module-single-page/health.svg)

```
[![Health](https://phpackages.com/badges/noking50-module-single-page/health.svg)](https://phpackages.com/packages/noking50-module-single-page)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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