sofiakb/lumen-utils

A library lumen utils

v0.0.18 2022-07-22 00:00 UTC

README

Contributors Forks Stargazers Issues MIT License


lumen-utils

A PHP Library for detect OS System !


Report Bug · Request Feature

Table of Contents
  1. About the library
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

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.