ixudra / render by Elimentz

Custom PHP rendering library for the Laravel 5 framework - developed by Ixudra
666
0
3
Package Data
Maintainer Username: Elimentz
Maintainer Contact: jan.oris@gmail.com (Jan Oris)
Package Create Date: 2015-11-14
Package Last Update: 2023-11-25
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-11 15:20:53
Package Statistics
Total Downloads: 666
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

ixudra/render

Latest Version on Packagist license StyleCI Total Downloads

Custom PHP rendering package for the Laravel 5 framework - developed by Ixudra.

This package provides several utility methods that allow you to easily display several pieces of information such as dates, prices and much more. All of these representations can be configured depending on the locale of the user. This gives you the ability to display data in a way that is most desirable for your users without difficulty.

This package can be used by anyone at any given time, but keep in mind that it is optimized for my personal custom workflow. It may not suit your project perfectly and modifications may be in order.

Installation

Pull this package in through Composer.


    {
        "require": {
            "ixudra/render": "0.*"
        }
    }


    'providers'     => array(

        //...
        Ixudra\Render\RenderServiceProvider::class,

    ),

Add the facade to your config/app.php file:


    'aliases'       => array(

        //...
        'Render'          => Ixudra\Render\Facades\Render::class,

    ),

Usage

Once all dependencies have been included and migrations have been run, you can start using the package:


    // Display a date in the default app locale 
    Render::date( '02/06/15', 'd/m/y' );

    // Display a date in a specific locale 
    Render::date( '02/06/15', 'd/m/y', 'es' );

    
    // Display a value as currency in the default app locale 
    Render::currency( 5123.6598 );              // Returns € 5.123,65

    // Display a value as currency in a specific locale - COMING SOON
    Render::currency( 5123.6598, 'us' );        // Returns $ 5.123,65


That's all there is to it! Have fun!

License

This package is open-sourced software licensed under the MIT license

Contact

Jan Oris (developer)

  • Email: jan.oris@ixudra.be
  • Telephone: +32 496 94 20 57