sofiakb / lumen-utils by sofiakb

A library lumen utils
96
0
1
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: 2024-04-30 15:09:24
Package Statistics
Total Downloads: 96
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Contributors Forks Stargazers Issues MIT License

About The Library

The library allows to detect os system in PHP project.

Built With

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.

Prerequisites

  • php >= 7.4

Installation

composer require sofiakb/lumen-utils

Usage

// 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 {
}

Roadmap

See the open issues for a list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE for more information.