Download the PHP package taskforcedev/laravel-support without Composer

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

laravel-support

Support package for Taskforcedev Laravel packages.

Provides a consistant way to get user specified layouts, sitename, and user administration rights (using conventions on the user model - if applicable).

Build Status:

1.0.x (Laravel 5.3): Build Status

1.1.x (Laravel 5.4): Build Status

Requirements

Features

Installation

Add the following line to your composer require: (not necessary if you already have a package which depends on laravel-support)

Laravel 5.3

"require": {
    "taskforcedev/laravel-support": "1.0.*"
},

Laravel 5.4

"require": {
    "taskforcedev/laravel-support": "1.1.*"
},

Then if you don't already have the following entry in your config/app.php add it also:

Taskforcedev\LaravelSupport\ServiceProvider::class,

Configuration

This package provides a single place where the following can be configured and used by packages which use this.

Publish Config

In order to edit the configuration please run the following command to publish the taskforce-support.php file into your apps config directory

php artisan vendor:publish --tag="taskforce-support"

Controller

The package provides a controller which if extended by your own controllers will provide the method buildData($data = []) which allows all controllers to access the same set of shared data.

As well as the shared data the method also accepts an array for which these extra values will be added to the data object.

Example:

use Taskforcedev\LaravelSupport\Http\Controllers\Controller

class MyController extends Controller
{
    public function index()
    {
        $data = [
            'title' => 'My Page',
            'description' => 'This is my page',
        ];
        $data = $this->buildData();
        return view('myview', $data);
    }
}

Helpers

User

Get the user model

This can then be used in eloquent relations within packages to prevent hardcoding or configuring user model in external config. Or anywhere else where you need the model name of user model.

Example
use Taskforcedev\LaravelSupport\Helpers\User as UserHelper;

Class whatever
{
    public function author() {
        $userHelper = new UserHelper();</code>
        $model = $userHelper->getUserModel();
        return $this->belongsTo($model);
    }
}

Contributing

Issues and pull requests are always appreciated, particularly anything relating to the new UI facade.

Please ensure any PHP is PSR-2 standard.

For anything else please raise a gihub issue.


All versions of laravel-support with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
illuminate/support Version 5.*
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 taskforcedev/laravel-support contains the following files

Loading the files please wait ....