Giter VIP home page Giter VIP logo

pa-tool's Introduction

pa-tool

  • Public excel : php artisan vendor:publish --tag=seed

  • init data T53B : php artisan gfl-seed:T53B

  • init data T54B : php artisan gfl-seed:T54B

  • init data T56B : php artisan gfl-seed:T56B

  • Public config : php artisan vendor:publish --tag=config

  • After you have installed PA tool, open your Laravel config file config/app.php and add the following lines. In the $providers array add the service providers for this package.

    GFL\Tool\ToolServiceProvider::class,

  • Add the facade of this package to the $aliases array.

    'Tool' => GFL\Tool\Facades\ToolFacade::class,

  • Code Examples

    $density_actual = 0.79 ; // Density actual
    $Temperature = 28 ; // Temperature (*C)
    $volumn = 1000 ; // Volumn
    $unit_volumn = 'gallon'; // gallon , lit
    $exchange_rate = 25000 ; // exchange rate
    $price = 20000; //price
    $unit_price = 'VND/Gallon'; // VND/Gallon, USD/Gallon
    $vat = 20 ; // %
    $data = Tool::convert($density_actual,$Temperature,$volumn,$unit_volumn,$exchange_rate,$price,$unit_price,$vat); // convert

   dd($data); 
  //array:8 [
  //  "D15" => 0.7995
  //  "VCF" => 0.9879
  //  "WCF" => 0.7984
  //  "LIT" => 76.8254
  //  "KG" => 60.5952
  //  "sub_amount" => 123456,
  //  "vat" => 123456,
  //  "amount" => 123456
  //]

pa-tool's People

Contributors

phamtuananh1996 avatar

Watchers

 avatar

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.