Package Data | |
---|---|
Maintainer Username: | sofiakb |
Maintainer Contact: | contact.sofiakb@gmail.com (Sofiakb) |
Package Create Date: | 2021-08-26 |
Package Last Update: | 2022-07-22 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-02 03:17:35 |
Package Statistics | |
---|---|
Total Downloads: | 96 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
The library allows to detect os system in PHP project.
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
composer require sofiakb/lumen-utils
// Register service provider
use Sofiakb\Lumen\Utils\Http\Controllers\Controller;
use Sofiakb\Lumen\Utils\Services\Service;
$app->register(Sofiakb\Lumen\Utils\Providers\LumenUtilsServiceProvider::class);
// Commands available
$commands = [
'app:name',
'key:generate',
'serve',
'set:env'
];
// Tools
class TableController extends Controller {
// Pass Service Namespace into $serviceClass
public function __construct(string $serviceClass = 'Service') {
parent::__construct($serviceClass);
}
public function all(){
return parent::all(); // TODO: Change the autogenerated stub
}
public function findBy(string $column,$id){
return parent::findBy($column,$id); // TODO: Change the autogenerated stub
}
public function findById($id){
return parent::findById($id); // TODO: Change the autogenerated stub
}
public function store(){
return parent::store(); // TODO: Change the autogenerated stub
}
public function update($id){
return parent::update($id); // TODO: Change the autogenerated stub
}
public function updateBy($column,$value){
return parent::updateBy($column,$value); // TODO: Change the autogenerated stub
}
public function search(){
return parent::search(); // TODO: Change the autogenerated stub
}
public function paginate($page){
return parent::paginate($page); // TODO: Change the autogenerated stub
}
}
class TableService extends Service {
}
See the open issues for a list of proposed features (and known issues).
Distributed under the MIT License. See LICENSE
for more information.