Download the PHP package bpez/infuse without Composer

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

Infuse

Latest Stable Version Total Downloads Latest Unstable Version License

Setup

Step 1: Add laravel5 path repo for toddish/verify package

Step 2: Install via composer

Step 3: Add the ServiceProvider

Step 4: Add to middleware

Step 5: Configure auth file

Step 6: Publish Configurations & public assets & run migrations

Step 7: Add to composer.json

Step 8: Add to .htaccess

Step 9: Run infuse migrations

Step 10: Add support to server retina images

Possible future features

Install artisan on sterioids

Behat infuse test suite

High level data flow

Infuse Configuration API

addSelect

Turn database field to a html form select. Take in single instanct or multiple.

Parameters

describeColumn

Adds a description to a database field.

Parameters

onlyOne

Only allow one database entry to be display and created.

addPermanentFilters

Add a SQL where clause to configuration.

Parameters

defaultColumnValues

Add a default value for when an entry is saved.

Parameters

addMultiSelect

Transform field to multiple select. Where IDs are kept track separated by a coma.

Parameters

hasMany

One To Many relationships are defined here. Define children relations like format below.

Parameters

  1. (Required) [string] Child model name
  2. (Required) [string] Display name for entries listed on parent edit page
  3. (Required) [array] Child columns to display on entries listed on parent edit page
  4. (Optional) [array] Contains extra functionality for dislaying child entries. Some options are as follows:

Ex. Child Columns array may have an array nested to match an id with a value like below:

array("category" => $categories)

Ex. For adding custom export and import functions.

Ex. Split table to act like 2 child tables separated by where clauses.

displayOrder

Changes column to an column to be used for ordering entries. Integer is used for the type. Makes field not editable by user and value automatically set.

Parameters

  1. Database table field names

fileUpload

Configure columns for file upload functionality.

Parameters

addCkeditor

Turns a text field to a addCkeditor.

Parameters

callFunction

Add extra action to entry's actions (show | edit | delete | YourActionHere ). Returning an array("type" => "success", "message" => $message) can tap into notification system. Type can be ("success" || "error" || "info" || "warning"). Or returning false will trigger default error message.

Parameters

  1. (Required) [string] function - Name of the function. Its a laravel elequent query scope. So if name is importSomeThing then in the model it's declared scopeImportSomeThing
  2. (Required) [string] Display name for the function
  3. (Optional) [string] If its a lengthy process you can set a message that will populate a waiting modal while the process is running.
  4. (Optional) [string] Provide a target for the html anchor tag.

Ex. importSomeThing implementation. Returns an array to the admin marked with type ("success" || "error") and message along with it.

addOtherAction

Add top level action under the "Other Actions" dropdown on the scaffold listing page. Function should be static function from the top level model. User instance is passed into static function. Returning an array("type" => "success", "message" => $message) can tap into notification system. Type can be ("success" || "error" || "info" || "warning"). Or returning false will trigger default error message.

Parameters

  1. (Required) [string] function - Name of the function. Its a laravel elequent query scope. So if name is importSomeThing then in the model it's declared scopeImportSomeThing
  2. (Required) [string] Display name for the function

Ex. seedUrls implementation

editListingOrder

Lets you select the column ordering for the edit/create page. Pass in an array with the column names in the desired order.

Parameters

  1. (Required) [string] table field names

Eloquent ORM

Setup models to work with infuse by extending the InfuseModel and using InfuseModelLibrary trait.

InfuseModel features

url($columnName, $hstoreColumn = false)

Fetch the full url path for the file name saved to the specific column. Call the url method and pass in the column name as a parameter.

thumbor($columnName, $hstoreColumn = false)

Building on top of url functionality return an instance of a thumbor client. Only works on columns the have a file saved to them. Thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images. Thumbor documentation and thumber client documentation can found here:

  1. https://github.com/thumbor/thumbor/wiki
  2. https://github.com/99designs/phumbor/blob/master/lib/Thumbor/Url/CommandSet.php

Services configuration required please see service configuration below for setup.

Bpez\Infuse\Util

Util::thumbor($url)

Same functionality as InfuseModel url method. For other image resources.

Util::cdn($url)

For delivering assets originating from same origin through CloudFront CDN. Services configuration required please see service configuration below for setup.

Services

/config/services.php

Retina image support

Include the Util::infuse() on your page (put it at the bottom of your template, before your closing tag)

S3 CORS needs to be enabled and config needed for retina support:

Created with http://dillinger.io

Do do list


All versions of infuse with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
bpez/transit Version 1.6.*
toddish/verify Version dev-laravel5
nesbot/carbon Version 1.*
barryvdh/laravel-debugbar Version 2.0.5
intervention/image Version 2.1.2
league/flysystem-aws-s3-v2 Version ~1.0
paquettg/php-html-parser Version 1.6.3
99designs/phumbor Version 1.1.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 bpez/infuse contains the following files

Loading the files please wait ....