2017 © Pedro Peláez
 

library phpstrap

Bootstrap layout generator

image

phpstrap/phpstrap

Bootstrap layout generator

  • Sunday, November 1, 2015
  • by kktuax
  • Repository
  • 4 Watchers
  • 4 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Whats the purpose of this project?

Using this library you can create Bootstrap's HTML markup easily using PHP., (*1)

Features

  • Bootstrap 3 support
  • Nest components in object-oriented way
  • Extend the bootstrap components with custom styles
  • Form validation
  • Wizard component with dependant Forms

Quick start

A full working example is available in the repository., (*2)

Add the composer dependency:, (*3)

"require": {
   "phpstrap/phpstrap": "1.*"
}

Issue a composer install o composer update if you already have composer installed for your project., (*4)

Include de composer autoload directive:, (*5)

require_once __DIR__ . '/vendor/autoload.php';

Include Bootstrap's CSS+JS in your PHP, for example with the CDN:, (*6)

<head>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" >
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" >
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

And start producing the HTML markup:, (*7)

use PHPStrap\Panel;
$ExamplePanel = new Panel();
$ExamplePanel->addHeader("Example panel");
$ExamplePanel->addContent("My content");
echo $ExamplePanel;

Clone and run example

git clone https://github.com/kktuax/PHPStrap.git
cd PHPStrap/examples
composer install

Deploy the examples folder to your PHP-enabled server, an open your browser:, (*8)

http://localhost/PHPStrap/examples/example.php, (*9)

API DOCS, (*10)

The Versions

01/11 2015

dev-master

9999999-dev http://github.com/kktuax/phpstrap

Bootstrap layout generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

css bootstrap html twitter layout

01/11 2015

1.0.2

1.0.2.0 http://github.com/kktuax/phpstrap

Bootstrap layout generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

css bootstrap html twitter layout

30/10 2015

1.0.1

1.0.1.0 http://github.com/kktuax/phpstrap

Bootstrap layout generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

css bootstrap html twitter layout

16/08 2015

1.0.0

1.0.0.0 http://github.com/kktuax/phpstrap

Bootstrap layout generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

css bootstrap html twitter layout

01/05 2014

3.x-dev

3.9999999.9999999.9999999-dev http://pendarenstudios.com/projects/bootstrap-form-builder/examples.php

Twitter Bootstrap form creator for PHP

  Sources   Download

MIT

The Requires

 

form bootstrap input twitter