primalbase / twitter-bootstrap
HTML markup class with Twitter Bootstrap for PHP.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:CSS
Requires
- primalbase/html-tag2: 1.9.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-11-06 23:47:29 UTC
README
HTML markup class.
use Primalbase\TwitterBootstrap as Tag;
\Primalbase\Tag\Tag::$codeFormat = false;
echo Tag::html('ja')
<html lang="ja">
</html>
echo Tag::container()
<div class="container">
</div>
echo Tag::row()
<div class="row">
</div>
echo Tag::col(4) or echo Tag::colXs(4)
<div class="col-xs-4">
</div>
echo Tag::row(Tag::colMd(10, 'text body')->mdOffset(2))
<div class="row">
<div class="col-md-10 col-md-offset-2">
text body
</div>
</div>
echo Tag::formTextRequired('user')
<input type="text" class="form-control" name="user" required>