1. Go to this page and download the library: Download blackcube/yii-bleet library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blackcube / yii-bleet example snippets
use Blackcube\Bleet\Bleet;
Bleet::button('Save')->primary()->render();
Bleet::button('Delete')->danger()->sm()->render();
Bleet::buttonGroup()
->addButton(Bleet::button()->icon('pencil')->info())
->addButton(Bleet::button()->icon('trash')->danger())
->render();
Bleet::alert()->title('Warning')->content('Check your input')->warning()->render();
Bleet::toast()->success()->title('Saved')->content('Changes applied')->render();
// Trigger — loads content via AJAX
Bleet::button('Edit')->attributes(Bleet::modal('editUser')->trigger('/user/1'))->render();
Bleet::button('Details')->attributes(Bleet::drawer()->trigger('/user/1'))->render();
// Shell — once in layout
Bleet::modal('editUser')->render();
Bleet::drawer()->render();
// Trigger on element
Bleet::toggle()->attributes(Bleet::ajaxify()->event('change')->trigger())->render();
// Ajaxify zone
Bleet::ajaxify('myZone')->url('/api/content')->open();
// ... content ...
Bleet::ajaxify()->close();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.