PHPackages                             sukohi/paver - 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. sukohi/paver

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

sukohi/paver
============

A PHP package mainly developed for Laravel to generate PHP codes using column names of specified table.

08PHP

Since Dec 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/Paver)[ Packagist](https://packagist.org/packages/sukohi/paver)[ RSS](/packages/sukohi-paver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Paver
=====

[](#paver)

A PHP package mainly developed for Laravel to generate PHP codes using column names of specified table.

Example
=======

[](#example)

```
$item->id = '';
$item->title = '';
$item->created_at = '';
$item->updated_at = '';

```

Installation&amp;setting for Laravel
====================================

[](#installationsetting-for-laravel)

After installation using composer, add the followings to the array in app/config/app.php

```
'providers' => array(
    ...Others...,
    'Sukohi\Paver\PaverServiceProvider',
)

```

Also

```
'aliases' => array(
    ...Others...,
    'Paver' =>'Sukohi\Paver\Facades\Paver',
)

```

Usage
=====

[](#usage)

**Basic setting**

```
$paver = Paver::table('table_name');

// Example
$paver = Paver::table('items');

```

**Minimal way**

```
echo $paver->format();

// Example
$item->id = '';
$item->title = '';
$item->created_at = '';
$item->updated_at = '';

```

**with Argument(s)**

```
echo $paver->format('argument');

// Example
$item->id = $id;
$item->title = $title;
$item->created_at = $created_at;
$item->updated_at = $updated_at;

```

**with Input::get('\*\*\*')**

```
echo $paver->format('input');

// Example
$item->id = Input::get('id');
$item->title = Input::get('title');
$item->created_at = Input::get('created_at');
$item->updated_at = Input::get('updated_at');

```

**with foreach()**

```
echo $paver->format('foreach');

// Example
$id = $item->id;
$title = $item->title;
$created_at = $item->created_at;
$updated_at = $item->updated_at;

```

**Json**

```
echo $paver->format('json');

// Example
["id","title","position","created_at","updated_at"]

```

**Array**

```
echo $paver->format('array');

// Example
$columns = ['id', 'title', 'position', 'created_at', 'updated_at'];

```

**Custom format**

You can also use custom formats like this.

```
echo $paver->format(':table and :column.');

// Example
item and id.
item and title.
item and created_at.
item and updated_at.

```

- :table will be replaced with singular table name.
- :column will be replaced with a column name of the specified table.

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2014 Sukohi Kuhoh

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-paver/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-paver/health.svg)](https://phpackages.com/packages/sukohi-paver)
```

###  Alternatives

[voku/php-hooks

A fork of the WordPress filters hook system rolled in to a class to be ported into any PHP-based system

7637.3k3](/packages/voku-php-hooks)

PHPackages © 2026

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