Download the PHP package kuleuven/laravel-template without Composer

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

Laravel package providing ready to use template files to mimic the 2016 KU Leuven web layout.

This package should be considered as a boilerplate. It is intended to be installed and configured just once per project. Afterwards, updates will not be reflected automatically to your template files.

Features

Prerequisites

Installation in Laravel 5.3

First install a fresh Laravel

And don't forget to let the www root point to the myapp/public/ directory.

Install the package and publish the files to your resources

Add the following sevice provider to your app.php :

Add following line to the classmap in your root composer.json file

Then run

If "npm install" doesn't work, try "sudo npm install".

Finally, add following lines to .env and fill in the correct values

You can now go extending the published layout to your needs!

Optional Laravel packages

The template is optimized to work together with following Laravel vendors. All are entirely optional.

laravel-menu

laravel-menu is a powerful package to build and display a menu structure.

laravel-breadcrumbs

laravel-breadcrumbs is not maintained any longer, but can still be used as a tool to dynamically build a breadcrumb structure.

To support the KU Leuven layout, after installation, change the 'view' parameter of the config/breadcrumbs.php file to

stevenmaguire/laravel-middleware-csp

stevenmaguire/laravel-middleware-csp allows you to serve a policy file (CSP) to browsers telling them which frontend resources are safe to be loaded on your webpage.

mcamara/laravel-localization

mcamara/laravel-localization is a powerful extension for the supporting multiple languages in Laravel.

laravelcollective/html

Laravel Collective provides an easier way to build forms.

mews/purifier

Purifier comes with a method "clean" to selectively filter HTML from a string.

Applying updates

As this package serves as a boilerplate, fetching updates won't have effect to your layout, because the only way to alter the resources is to republish these package files which might probably overwrite your customizations you made for your app.

Running "gulp" again however, will fetch the latest HTML and CSS of the templates from ICTS. This is intended, as the ICTS template files are still in development. Also, this way the university related menu items in the header and footer of the layout are brought to their latest version in accordance with the other KU Leuven websites.

You might want to split the gulp command into a command to update your CSS/JS, and one to fetch the latest ICTS resources, but this is entirely up to you.

Notes:

Stay up-to-date

Todos

This boilerplate was made to support an info session at the university. It still needs some cleanup, such as a cleaner gulpfile.js and the use of Laravel facades.

Help is appreciated!


All versions of laravel-template with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
laravel/framework Version 5.3.*
davejamesmiller/laravel-breadcrumbs Version ^3.0
lavary/laravel-menu Version ^1.6
mcamara/laravel-localization Version ^1.1
stevenmaguire/laravel-middleware-csp Version ^0.1.1
laravelcollective/html Version ^5.3
mews/purifier Version ^2.0
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 kuleuven/laravel-template contains the following files

Loading the files please wait ....