Code Monkey home page Code Monkey logo

bootstraphp's Introduction

BootstraPHP

https://bootstraphp.com

A Bootstrap wrapper for PHP

Example Pages

Check out these Websites that use BootstraPHP:

https://bootstraphp.com

https://tuxnull.com

Install via composer

To install the latest release via composer, run composer require tuxnull/bootstraphp.

To install the latest dev-release via composer, run composer require tuxnull/bootstraphp:dev-master.

If installing via composer doesn't work, try installing manually.

Install manually

To install BootstraPHP manually, download bootstrap.php and include the following statement in your PHP scripts: include ("bootstrap.php");

This wrapper is still highly experimental. If you experience any bugs or have any suggestions feel free to let us know via the Issues tab on our GitHub page.

To get started with BootstraPHP check out the Wiki section on our GitHub page (https://github.com/amazonshitcarshow/BootstraPHP/wiki)

bootstraphp's People

Contributors

astray-heavy-arms avatar pxng avatar theshineagency avatar tuxnull avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstraphp's Issues

Pass vars from an array

Curious, would it not be better when an element has a large number of options e.g.

custom_link($element, $links_to, $content, $style, $disabled)

as an array like: -

$args = array('I contain' => 'all the options');
echo custom_link($links_to, $args);

That way when working with lots of custom_links you have one central place to control them?

Pages always marked as index,follow

Describe the bug
Within the init_meta function you set a static value for the robots meta tag. Found here:

return '<meta charset="utf-8"><meta name="robots" content="index,follow">

From an SEO perspective, it's less than ideal that this package sets all pages to index,follow via a robots meta tag. This is a meta tag that should be used with caution and is generally adjusted on a page/URL by page/URL basis.

For example, some pages may necessitate: index, nofollow, noindex, follow or noindex, nofollow. Any premutation of these could exist

To Reproduce
See:

return '<meta charset="utf-8"><meta name="robots" content="index,follow">

Expected behavior
A user should be able to control the values this tag provides.

Bootstrap Assets should us an established CDN service

Describe the bug
It appears that the main bootstrap.min.css file is being provided by using a URL that points to your domain. This will provide a poor user experience to developers and website end-users.

The reason being that this isn't an established CDN, so this raises two huge red flags. The first being that the chance of this providing a cache hit across multiple Bootstrap using sites is slim to none. Meaning the main benefit of using a CDN - higher chance of asset cache hits - is moot. And the other main benefit - files being delivered via regionally located servers - doesn't apply.

TL;DR: A domain behind CloudFlare !== a real asset CDN.

Suggested Fix
Utilize the official BootstrapCDN or CloudFlares CDNjs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.