Download the PHP package vi-kon/laravel-utilities without Composer

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

Laravel 5 Utilities

Utilities for Laravel 5. View helpers and other usefull classes.

Table of contents

Known issues

None


Back to top

Todo


Back to top

Changes

Version 2.1

Version 2.0


Back to top

Installation

Base

To your composer.json file add following lines:

In your Laravel 5 project add following lines to app.php:

Middleware

To use middleware class assigned to route need to assign short-hand key to middleware property of your app/Providers/RouteServiceProvider class:


Back to top

Views


Back to top

html5-layout

There are two templates. One for Blade template engine and one for Smarty template engine.

Note: html5-layout.tpl requires Smarty functions implemented in vi-kon/laravel-smarty-view package.

Avalaible blocks / sections:

Name Description
author Author metadata
body Empty block in body root
description Description metadata
head Empty block for other head stuff
scripts Scripts at after closing body tag
scripts-head Empty block to include header scripts
styles Empty block to include stylesheets
title Page title
viewport Viewport meta data

Block / section definitions:

author
body
description

or

head

or

scripts

or

scripts-head

or

styles

or

title

or

viewport

or


Back to top

Usage

Example "app-layout.tpl"

Back to top

Classes


Back to top

Traits

ConsoleProgress trait

This trait help display a progressbar on console:

Output

Usage


Back to top

Middleware

Utilities middleware classes allow different features.


Back to top

IsAjax middleware

Check if current request is ajax request or not. If request is not ajax request, then throws NotFoundHttpException exception.

Usage


Back to top

Helpers

Helper functions are shortcuts or aliases for app functions and methods.

json_response function

json_response function is alias for new JsonResponse.


Back to top

License

This package is licensed under the MIT License


All versions of laravel-utilities with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version ~5.0
symfony/console Version ^2.6
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 vi-kon/laravel-utilities contains the following files

Loading the files please wait ....