Download the PHP package digitv/yii2live without Composer

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

Yii2live SANDBOX project!

This extension helps you with AJAX links, forms and modals.

Application AJAX response is divided into:

And all of these things are processed separately. So you can return only few javascript commands and no more else, or just one widget (as old good Pjax), or whole page, but only widgets, state of those were changed.

For example your Nav widget can decide what to do by itself - render widget fully or just change active link. There are special widget states for this.

Creating AJAX link

Creating HtmlContainer like a Pjax

All links inside this container will be AJAX enabled. Search form, that will update this container is looks like this:

or this

Using JS commands

There are much more JS commands that you can use (@see in digitv\yii2live\components\JsCommand)

Config options

Option Description
enable Global enabled flag
enableLiveLoad Enable "live" request for each link and form
enableReplaceAnimation Enable replace animation for each widget
enableLoadingOverlay Enable loading animation as animated overlay
headerName Header name used for "request ID" sending
headerNameContext Header name used for "context ID" sending
linkSelector jQuery selector for links (only when enableLiveLoad active)
linkSelectorAjax jQuery selector for links
formSelector jQuery selector for forms (only when enableLiveLoad active)
formSelectorAjax jQuery selector for forms
fieldSelectorAjax jQuery selector for form fields (change event)
messageAdapter Name of message adapter. Used to show messages for user (alert or notify)
modalDefaultSelector jQuery selector for default modal popup
modalDefaultRender Render default modal or not
modalDefaultId Default modal ID
modalDefaultSize Default modal size (sm/lg or empty)
modalDefaultWithFooterClose Show close button in modal footer

All versions of yii2live with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ^2.0.13
bower-asset/font-awesome Version ^4.7
bower-asset/remarkable-bootstrap-notify Version ^3.1.3
bower-asset/animate.css Version ^3.5.2
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 digitv/yii2live contains the following files

Loading the files please wait ....