Download the PHP package codeheures/laravel-utils without Composer

On this page you can find all versions of the php package codeheures/laravel-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-utils

laravel-utils

Laravel-utils is a toolbox that allow:

API: Geolocation Informations by Ip

This API allow you to serve geolocation infos to client (useful for xhtmlrequests). \ You can also use static function for a server side processing.

Get complete informations

with Ip on URL without Ip : try first to use your public Ip. If not public, try to use config('codeheuresUtils.ipTest'). If not available Ip finally use a static IP

Get only LOC [latitutde, longitude] informations

With or without IP on url (see above)

Get only Country informations

With or without IP on url (see above)

If error

`

PHP Tool: Geolocation Informations by Ip

You can use statics class for a side-server processing

PHP Tool: Get valid public IP

with only request: return your IP if public or the static class var Ip with a second param: return your IP if public, or param if public IP, or finally the static class var Ip

PHP Tool: Get the Browser Name

PHP Tool: Get Database Infos

get list of enum values for a column of a table

Example: get the enum values of the currencies column of the priceTable

get easy count elem on a table with multiple count where

The where clauses is a equal clauses

PHP Tool: Locale Tools

Locale Tools allow you to obtain various information of locales. This suite of tools is used in a powerful middleware to find the best locale adapted to the user. When the middleware find the best locale, this is shared in a config('runtime.locale') variable accessible throughout the application. You can use it to translate your application for the user.

Array of locales availables on the server

without restriction of availables languages (find in codeheuresUtils.availableLocales config file): with restriction:

Boolean test if a locale is an available locale

Test if a locale is an valid locale and return locale or null

Get the first possible locale by a country code

Compose a locale and return if exist, null if don't exist

Get default Locale within env('DEFAULT_LOCALE') or static var $last_fall_locale

PHP Tool: Currencies Tools

Currencies Tools allow you to obtain various information of currencies. It use MoneyPhp and config('runtime.locale') This suite of tools is used in a powerful middleware to find the best currency adapted to the user. When the middleware find the best currency, this is shared in a config('runtime.currency') variable accessible throughout the application. You can use it to manage prices in your application.

Test if a currency exist

Get subunit of a currency (if exist else return 0)

Get list of currencies with symbol according to a locale

Get symbol by currency code and locale

Get default money by a compose local (the second param is a fallback currency)

Get default Currency within env('DEFAULT_CURRENCY') or static var $last_fall_currency

Middleware: config('runtime.ip'), config('runtime.locale') & config('runtime.currency')

Installation of middlawares allow you to use config('runtime.ip'), config('runtime.locale') & config('runtime.currency') all over the application controllers ans views.

config('runtime.locale') & config('runtime.currency') can be saved and read in User attribute 'locale' & 'currency'

``

Installation

In config file you can change

Optionnal: add "locale" and/or "currency" attribute to User to manage saving preferences locale in your app

Before first use we update maxmind db

Congratulations, you have successfully installed laravel-utils !

Copyright and Licence

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

This product use GeoIp2 on apache2 Licence https://github.com/maxmind/GeoIP2-php.

This product use Moneyphp on MIT Licence https://github.com/moneyphp/money.

This software is provided "as is" without warranty of any kind, either express or implied, regarding the software package, its merchantability, or its fitness for any particular purpose.

This is free software, licensed under the Apache License, Version 2.0.


All versions of laravel-utils with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
illuminate/support Version ~5.5
geoip2/geoip2 Version ~2.8
moneyphp/money Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codeheures/laravel-utils contains the following files

Loading the files please wait ....