Xhp Bootstrap screenshot

Xhp Bootstrap

Author Avatar Theme by Facebookarchive
Updated: 3 Feb 2017
107 Stars

Provides classes to use with XHP for common components of Twitter's Bootstrap library.

Overview

XHP-Bootstrap is a project that provides XHP classes for the popular Bootstrap HTML, CSS, and JS framework. It aims to provide XHP classes for common components used in web pages. Although the project is not actively maintained, it is still considered valuable as an example.

Features

  • XHP-Bootstrap provides XHP classes for common components used in web pages.
  • This project can serve as a reference for implementing custom elements.
  • The HHVM documentation site’s XHP elements can be used as a real-world example.

Installation

To install XHP-Bootstrap, the following requirements need to be met:

  • HHVM 3.6 or later
  • Composer

Installation steps: Step 1: Include Bootstrap Prerequisites Bootstrap’s JavaScript components require jQuery. You can either include the downloadable version of jQuery or use a CDN to include it in the head of your XHP document.

Step 2: Include Bootstrap Source Obtain the latest Bootstrap package and reference it in your project, or use their CDN links and include them in the head of your XHP document.

Step 3: Add XHP-bootstrap dependency Modify your composer.json file by adding the XHP-bootstrap dependency and then re-run Composer.

Step 4: Enable Composer Autoloading Include the necessary code in your PHP to enable autoloading from Composer.

Summary

XHP-Bootstrap provides XHP classes for the popular Bootstrap framework, allowing developers to easily incorporate Bootstrap components into their XHP projects. Although the project is no longer actively maintained, it still serves as a useful reference for implementing custom elements. The installation process involves including the necessary Bootstrap prerequisites, adding the Bootstrap source, adding the XHP-bootstrap dependency through Composer, and enabling Composer autoloading in PHP.