Download the PHP package anthoz69/anter without Composer
On this page you can find all versions of the php package anthoz69/anter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anthoz69/anter
More information about anthoz69/anter
Files in anthoz69/anter
Package anter
Short Description This package is collage helper function and class for develop laravel
License MIT
Homepage https://github.com/anthoz69/anter
Informations about the package anter
Anter
This package is collect my methods and function use frequently in laravel be careful if you are using this package it can be breaking chage anytime. Please fork it to your own repository, And send some PR for cool feature if you need to contribute it.
Installation
1 - Install the package via Composer:
The package will automatically register its service provider.
Note: If you are using Laravel 5.5, the steps 2 and 3, for providers and aliases, are unnecessaries. Dod Package supports Laravel new Package Discovery.
2 - You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your config/app.php
file adding the following code at the end of your 'providers'
section:
config/app.php
Usage
AnterStore Facade
Save file from frontend upload in laravel and generate unique file name before store file.
AnterImg Facade
Save file from frontend upload in laravel and resize image.
Currency function
2 => 2.00
4.75668 => 4.75
Router function
isRoutePrefix If your url start with /admin or something will place active class
to html attribute class it good for hierarchy menu.
e.g. your url /admin/user/create
.
isRoute When user access to url and laravel route name matched it will output class.
Video function
get id from url support Youtube, Vimeo if wrong format will return null
.
Time function in Thailand country format
Send timestamp (created_at, updated_at in laravel) to function will return string time.
e.g.
Security
If you discover any security related issues, please open the issue or send me some cool PR.
Credits
- Itthipat (Anthoz69)
- All Contributors
Contributing
Please see contributing.md for details and a todolist.
License
license is under MIT. Please see the license file for more information.