2017 © Pedro PelĂĄez
 

library laravel-helpers

Package with useful things for Laravel 5.5 or highest

image

jlpiriz/laravel-helpers

Package with useful things for Laravel 5.5 or highest

  • Saturday, December 16, 2017
  • by Jonatan LĂłpez
  • Repository
  • 1 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 113 % Grown

The README.md

Helpers for Laravel 5

Simple package with useful things for Laravel 5.5 or highest., (*1)

Latest Stable Version License, (*2)

Installation

To install this package you will need:, (*3)

  • Laravel 5.5+
  • PHP 7.1+

Install via composer to require the package., (*4)

$ composer require jlpiriz/laravel-helpers

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider., (*5)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php, (*6)

Jlpiriz\LaravelHelpers\Providers\HelpersServiceProvider::class,

Finally, you will want to publish the config using the following command:, (*7)

$ php artisan vendor:publish --provider="Jlpiriz\LaravelHelpers\Providers\HelpersServiceProvider"

Usage

This package is starting. You will soon have more features., (*8)

All classes use the singleton pattern. This ensure that only one instance of a class is created. The global point of access to the object is the method getInstance()., (*9)

Logger

Logger class save any variable to a file. The variables can take are: array, bool, float, int, null, object and string. Any other variables give a file with an error message., (*10)

    $log = Logger::getInstance("/my/relative/path")
    $log->save("file.txt", "hello world....");

        or 

    Logger::getInstance()->save("file.txt", ["hello", 12.5, [1,2,"world",4,5] ]);

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes
  4. Commit your changes (git commit -am 'Added some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

License

Helpers for Laravel 5 is open-sourced software licensed under the MIT license., (*11)

The Versions

16/12 2017

dev-master

9999999-dev https://github.com/jlpiriz/laravel-helpers

Package with useful things for Laravel 5.5 or highest

  Sources   Download

MIT

The Requires

 

by Avatar Jonatan LĂłpez

helpers simple package useful

16/12 2017

v0.1

0.1.0.0 https://github.com/jlpiriz/laravel-helpers

Package with useful things for Laravel 5.5 or highest

  Sources   Download

MIT

The Requires

 

by Avatar Jonatan LĂłpez

helpers simple package useful