PHP code example of phpbs / bs3

1. Go to this page and download the library: Download phpbs/bs3 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/ */

    

phpbs / bs3 example snippets


<?= table(
	['ID', 'Title', 'Actions'],
	[
		[1, 'Post 1', btn(icon('pencil'), ['sm'], ['href' => '/posts/1/edit']) . btn_danger(icon('times'))],
		[2, 'Post 2', btn(icon('pencil'), ['sm'], ['href' => '/posts/2/edit']) . btn_danger(icon('times'))]
	],
	['bordered', 'hover', 'striped'],
	[pagination(2, 20) => ['colspan' => 3, 'class' => 'text-center']],
	['id' => 'posts-table']
)