Download the PHP package phpmv/php-mv-ui without Composer

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

php-mv-UI

Visual components library (JQuery UI, Twitter Bootstrap, Semantic-UI) for php and php MVC frameworks

phpMv-UI website

Build Status Latest Stable Version Total Downloads License Scrutinizer Code Quality Documentation

What's phpMv-UI ?

phpMv-UI is a visual components library for php : a php wrapper for jQuery and UI components (jQuery, Twitter Bootstrap, Semantic-UI).

Using the dependency injection, the jQuery object can be injected into php framework container, allowing for the generation of jQuery scripts in controllers, respecting the MVC design pattern.

Requirements/Dependencies

Resources

I - Installation

Installing via Composer

Install Composer in a common location or in your project:

Create the composer.json file in the app directory as follows:

In the app directory, run the composer installer :

Installing via Github

Just clone the repository in a common location or inside your project:

II PHP frameworks configuration

Library loading

phpMv-UI complies with PSR-4 recommendations for auto-loading classes. Whatever the php framework used, with "composer", it is enough to integrate the Composer autoload file.

Ubiquity configuration

Library loading

The library is already loaded by default in the config file app/config/config.php :

Use in controllers

Example of creating a Semantic-UI button

Phalcon configuration

Library loading

Without Composer, It is possible to load the library with the app/config/loader.php file :

Injection of the service

It is necessary to inject the JQuery service at application startup, in the service file app/config/services.php, and if necessary instantiate Semantic, Bootstrap or Jquery-ui :

Use in controllers

Example of creating a Semantic-UI button

CodeIgniter configuration

Library loading

If you want CodeIgniter to use a Composer auto-loader, just set $config['composer_autoload'] to TRUE or a custom path in application/config/config.php.

Then, it's necessary to create a library for the JsUtils class

Library creation

Create the library XsUtils (the name is free) in the folder application/libraries

Injection of the service

Add the loading of the XsUtils library in the file application/config/autoload.php

The jquery member will be accessible in the controllers

Once loaded you can access your class in controllers using the $jquery member:

Laravel configuration

Library loading

If you do not use the Composer autoloader file, you can also load phpMv-UI with composer.json :

Injection of the service

Register a Singleton in bootstrap/app.php file :

Then it is possible to inject the JsUtils class in the base class controllers constructor :

Yii configuration

Library loading

The classes in the installed Composer packages can be autoloaded using the Composer autoloader. Make sure the entry script of your application contains the following lines to install the Composer autoloader:

In the same file, register a new dependency :

Injection of the service

The JsUtils singleton can then be injected into controllers

Symfony configuration

Library loading

If you do not use the Composer autoloader file, you can also load phpMv-UI with Ps4ClassLoader :

Symfony 4

Create a service inheriting from JquerySemantic

Check that autowiring is activated in config/services.yml:

You can then use dependency injection on properties, constructors or setters:

Symfony 3

Injection of the service

Create 2 services in the app/config/services.yml file :

It is then possible to inject the Symfony container and the JsUtils service in the controller constructor :

CakePhp configuration

Component creation

Copy the file JsUtilsComponent.php located in vendor/phpmv/php-mv-ui/Ajax/php/cakephp to the src/controller/component folder of your project

Component loading in controllers

Add the JsUtils component loading in the initialize method of the base controller AppController, located in src/controller/appController.php

Usage

the jquery object in controller will be accessible on $this->JsUtils->jquery

Code completion in IDE

With most IDEs (such as Eclipse or phpStorm), to get code completion on the $jquery instance, you must add the following property in the controller documentation:


All versions of php-mv-ui with dependencies

PHP Build Version
Package Version
Requires php Version >7.0
frameworks/jquery Version ~2.1
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 phpmv/php-mv-ui contains the following files

Loading the files please wait ....