Download the PHP package apancutt/bsutils without Composer

On this page you can find all versions of the php package apancutt/bsutils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bsutils

bsutils

JavaScript utilities for use with Twitter Bootstrap.

Requirements

Installation

Ensure bsutils-core.min.js is included at the bottom of your page then initalize a new BsUtils instance:

    <!-- ... -->

    <script src="bsutils-core.min.js"></script>

    <script>
        (function() {

            var bsutils = new BsUtils();
            // ...

        }) ();
    </script>

  </body>
</html>

Modules

Out-of-the-box, bsutils doesn't do much. The juice comes from modules. You'll need to manually include the module(s) you required into your page in order to use them.

<script src="bsutils-core.min.js"></script>
<script src="bsutils-module-mymodule.min.js"></script>

<script>
    (function() {

        var bsutils = new BsUtils({
            mymodule_options = {}
        });

        var mymodule = bsutils.module("mymodule"); // Will be initialized with mymodule_options

        // ...

    }) ();
</script>

version Detect Bootstrap CSS version

Support for this functionality is currently not provided by Bootstrap so you will need to compile your own Bootstrap LESS/SASS files for it to work.

LESS Installation

In variables.less add:

@version: "3.3.1"; // Replace with the version that you are using

In utilities.less add:

.bootstrap-version {
  &:extend(.hidden);
  &:after {
    content: $version
  }
}
SCSS Installation

In _variables.scss add:

$version: "3.3.1"; // Replace with the version that you are using

In _utilities.scss add:

.bootstrap-version {
  @extend .hidden;
  &:after {
    content: $version
  }
}
Options
Name Type Default Description
container HTMLElement document.body Container for generated version sniffer element.
tag string DIV HTML element tag for generated version sniffer element.
Methods
get() string Returns the Twitter Bootstrap version.
Examples
var bsutils = new BsUtils();

// Get the Bootstrap version (e.g. "3.3.1")
console.log(bsutils.module("version").get());

viewport Detect the active viewport

Options
Name Type Default Description
container HTMLElement document.body Container for generated viewport sniffer elements.
tag string DIV HTML element tag for generated viewport sniffer elements.
Methods
all() array Returns all known viewports.
get() string Returns the current viewport.
is(string viewport) boolean Returns true if current viewport matches viewport.
lt(string viewport) boolean Returns true if current viewport is less than viewport.
lte(string viewport) boolean Returns true if current viewport is less than or equal to viewport.
gt(string viewport) boolean Returns true if current viewport is greater than viewport.
gte(string viewport) boolean Returns true if current viewport is greater than or equal to viewport.
Examples
var bsutils = new BsUtils();

// Get the current viewport (e.g. "xs", "md", etc.)
console.log(bsutils.module("viewport").get());

// Test the current viewport
console.log(bsutils.module("viewport").is("xs")); // TRUE only if current viewport is "xs"
console.log(bsutils.module("viewport").lt("md")); // TRUE only if current viewport is "xs" or "sm"
console.log(bsutils.module("viewport").lte("md")); // TRUE only if current viewport is "xs" or "sm" or "md"
console.log(bsutils.module("viewport").gt("md")); // TRUE only if current viewport is "lg"
console.log(bsutils.module("viewport").gte("md")); // TRUE only if current viewport is "lg" or "md"

All versions of bsutils with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package apancutt/bsutils contains the following files

Loading the files please wait ...