Download the PHP package bootpress/page without Composer

On this page you can find all versions of the php package bootpress/page. 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 page

use BootPress\Page\Component as Page;

Packagist HHVM Tested PHP 7 Supported Build Status Code Climate Test Coverage

A framework agnostic HTML framework that allows you to manipulate every part of an HTML Page at any time.

Installation

Add the following to your composer.json file.

Example Usage

The Page class implements the Singleton design pattern so that you can call it from anywhere, and still be on the same "Page". You don't have to, but if you would like to enforce a desired url scheme (recommended), then do this:

Symfony is our undisputed friend here. This class relies on their HttpFoundation component. You can pass us an instance if you already have one going, or we will create one for you. Check this out:

The $page->response above is the Symfony Response object that you can access directly. You can also call (or set) $page->session, and if you didn't have one before, you do now.

Now that setting up is out of the way ...

Of course, none of that does any good if you don't give us the final HTML to work with:

That will return you a nice:

To change (or access) the default values that have been set (by anyone), you can:

Above, you just gave us your <p>Content</p>, and we created the HTML Page around it. You can also give us the entire page, and we'll still put things where they belong:

That will give you:

It's a bit screwed up still, but that's how you wanted it. We took nothing out, and only added the parts that were missing with the information you gave us. This class can do as little, or as much as you like. It's all the same to us. Even if you use none of the above, it's still nice to have a central location where an application can create, and work with urls established according to your specs.

That should be a good enough sampling for a README file. We didn't even get to directories, filters, and responses, but it's all there in the source code, fully documented.

Enjoy!

License

The MIT License (MIT). Please see License File for more information.


All versions of page with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
symfony/http-foundation Version ^2.3 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0
altorouter/altorouter Version ^1.0 || ^2.0
pimple/pimple Version ^3.0
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 bootpress/page contains the following files

Loading the files please wait ....