Download the PHP package curtissaunders/laravel-helpers without Composer

On this page you can find all versions of the php package curtissaunders/laravel-helpers. 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-helpers

Laravel Helpers

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

This package requires PHP 5.6+, and includes a Laravel 5 Service Provider.

To install through composer include the package in your composer.json.

"curtissaunders/laravel-helpers": "^1.0"

Run composer install or composer update to download the dependencies or you can run composer require curtissaunders/laravel-helpers.

Laravel 5 Integration

To use the package with Laravel 5, add the Helper Service Provider to the list of service providers in app/config/app.php.

'providers' => [

  CurtisSaunders\LaravelHelpers\HelpersServiceProvider::class

];

Available helpers

Example of versioned_asset:

{{ versioned_asset('images/photo.png') }}

outputs:

http://mysite.com/images/photo.png?v=392104829

Example of concat:

{{ concat('John', 'Terry', 'Dave') }}

outputs:

John Terry Dave

Example of concat_ws:

{{ concat_ws(' - ', 'John', 'Terry', 'Dave') }}

outputs:

John - Terry - Dave

Example of generate_uuid:

{{ generate_uuid() }}

outputs:

e4eaaaf2-d142-11e1-b3e4-080027620cdd

When using the generate_uuid function, you are able to generate valid RFC 1, 3, 4 and 5 versions. In order to change the version, simply pass the version number you require as the first argument (defaults to 1). For example, to generate a version 4 Uuid, you can do the following:

{{ generate_uuid(4) }}

outputs:

25769c6c-d34d-4bfe-ba98-e0ee856f3e7a

For versions 3 and 5, you are also required to pass in a string as the second argument. This is hashed and used when generating the Uuid. For example:

{{ generate_uuid(3, 'php.net') }}

outputs:

11a38b9a-b3da-360f-9353-a5a725514269

Example of route_is() or routeIs():

Examples shown in Laravel Blade

Alternatively

You can also check for specific parameters by passing them in an array as the second argument. For example, you may want to check that you're on a specific product category to apply an "active" class to a link. Consider the below when looping through category links:

The above would apply a class of "active" when you're on the corresponding page to that link.

Example of query_log_to_sql:

Example of combine_query:


All versions of laravel-helpers with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/support Version >=5.0
ramsey/uuid Version >=3.5
moontoast/math Version ^1.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 curtissaunders/laravel-helpers contains the following files

Loading the files please wait ....