Giter VIP home page Giter VIP logo

genius-helper's Introduction

Genius-helper

Helper Features For Development with Laravel

Latest Version on Packagist Quality Score Software License Total Downloads

About

  • The genius-helper package the Helper Library for laravel development
  • Most of the method and features useful in development

Features

  • Custom Command For Cache Clear All
  • API Standard For Date
    • Date To Epoch
    • Epoch To Date
    • Hour To Epoch
    • Epoch To Hour
    • Date String To Date with Format
  • Helper Method
    • Font Detect
    • Is Myanmar Font?
    • zawGyiToUnicode
    • UnicodeToZawGyi
    • Get Random Digit
    • Get File with File Format String

Installation

Require the htinlynn/genius package in your composer.json and update your dependencies:

$ composer require htinlynn/genius-helper

Usage For Custom Command

  • To Clear cache all of the
    • All caches of config, route, view and cache are cleared.
    • And config clear and cache

Command (short)

$ php artisan all:

Command (Long)

$ php artisan all:clearandcache

Usage For Helper Class

Init the class

$geniusHelper = new \Genius\Services\GeniusService();

&&

Dependency injection on construct or specific function

protected $geniusInterface;
public function __construct(Genius\Contacts\GeniusInterface $geniusInterface)
{
    $this->geniusInterface = $geniusInterface;
}

Available Method

$geniusHelper->randomDigit($length,$count);
$geniusHelper->formatBytes($size);
$geniusHelper->zawGyiToUnicode($content);
$geniusHelper->unicodeToZawGyi($content);

||

Facades

Genius::randomDigit($length,$count);
Genius::formatBytes($size);
Genius::formatBytes($size);
Genius::formatBytes($size);

Trait Method

Need to use before using my package method

use GeniusHelper;

Available Method

$this->dateToEpoch($dateString);
$this->hourToEpoch($hourString);
$this->epochToHour($epochString);
$this->epochToDate($epochString);
$this->toDateFormat($dateString);
$this->epochToDateByDateFormat($epochString,$format);

Improvement

  • Test Case
  • Contribution Guide
  • Version Release Note

Credit

Noted: All Date Time String are using UTC timezone Request Parameter And Respond Data are using UTC timezone

License

Released under the MIT License, see LICENSE.

genius-helper's People

Contributors

mghtinlynn avatar mghtinlynn2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

thettinhtut

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.