Download the PHP package johnturingan/laravel-fly-view without Composer

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

Laravel-fly-view

Is an Extension of Laravel View Class which compiles String Template on the fly. It automatically detects changes on your string template and recompiles it if needed.

This is useful if you want to render your template which came from other sources like CMS or third party API

Since its an Extension of laravel View class. It will not interfere on the usual flow of your application. You can still use laravel view as per normal but with the capability of passing string template.

It supports all directives of Blade Template.

Supports Laravel 5.2+

Installation :traffic_light:

Add the package to your composer.json

Or just run composer require

In config/app.php replace

Illuminate\View\ViewServiceProvider::class

with

Snp\FlyView\Providers\ViewServiceProvider::class

Usage :white_check_mark:

View normal usage:

Pass path to blade file using dot notation on the first parameter

Flyview usage:

Pass array of strings on the first parameter

or you can do

Flyview will merge all strings inside the array before compile. Useful if you have multiple template sources.

You can also use if from response helper like this.

Like I said before, it will not interfere the usual flow of Laravel View. Meaning you can do something like this.

Inside your includeTest.blade.php file is this:

Including string template to blade template file is possible.

Config :page_facing_up:

All configuration is same as the default view config in your config folder with an additional settings to minimize view contents. Default is false.

NOTE:

If you find any bugs or you have some ideas in mind that would make this better. Please don't hesitate to send comment on github.

If you find this package helpful, a simple star is very much appreciated.


MIT LICENSE
copyright © 2018 Scripts and Pixels.


All versions of laravel-fly-view with dependencies

PHP Build Version
Package Version
No informations.
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 johnturingan/laravel-fly-view contains the following files

Loading the files please wait ....