sukohi/paver
Larablocks Analysis
sukohi/paver has no release yet to check Laravel compatibility against.
Recommendation checks
Use with careUse with care: meets 0 of 3 checks.
- No dated releases
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require sukohi/paver:dev-master |
|
| PHP: | >=5.4.0 |
| License: | MIT |
| Last Updated: | Dec 5, 2014 |
| Links: | GitHub · Packagist |
Paver
A PHP package mainly developed for Laravel to generate PHP codes using column names of specified table.
Example
$item->id = '';
$item->title = '';
$item->created_at = '';
$item->updated_at = '';
Installation&setting 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
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
This package is licensed under the MIT License.
Copyright 2014 Sukohi Kuhoh
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.