phpMv
-UI toolkit 2.2.5
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Visual components library (JQuery UI, Twitter Bootstrap, Semantic-UI) for php and php MVC frameworks
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.
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 :
Just clone the repository in a common location or inside your project:
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.
Without Composer, It is possible to load the library with the app/config/loader.php file :
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 :
Example of creating a Semantic-UI button
```php use Phalcon; use Ajax; /**