Download the PHP package icuk/broadband-availability-php without Composer

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

ICUK Broadband Availability Checker

Latest Build

Integrate the ICUK broadband availability checker into your PHP application

Installation

The PECL mbstring, zip and ext-curl extensions are required

Download and extract the latest release

Windows

Linux

That is is all that is needed to install the availability checker, if this fails then try installing from source below At this point you should read the usage section which will show you how to configure the library

Installation with Composer

Download composer.phar (if not already installed)

Create a composer.json file with this data (if you already have a composer.json file add the data from the require)

Install with all dependencies

Usage

api.php

This file will allow the user to make requests to the broadband availability api. You should in this format but substitute the credentials with your own and you can and should use your own method of authentication beforehand to prevent unauthorised access to the endpoint.

index.php

This is a very simple example that shows how a page that presents the user with the broadband avaiability checker may be used. The api.php endpoint is purely an example and that should just be a path to wherever you've put the api.php file

The render_styles line is also optional and you can apply your own stylesheet to the table, it also important to note that the results panel will not appear until a search takes place.

Example of what the above code should result in

Edit error message

To swap out the error message that occurs when an availability check fails you can use the error message as a parameter of render_search

Custom Styles

Using Style Configuration

You can use the SearchStyleSettings and ResultsStyleSettings classes to edit the colour schemes of the search and results modules. The example below shows using this to make the search button a red to green fade and the background of the results fields blue.

Example of what the above code should result in

Currently the rgb, rgba, hex, hsl, hsla, CIELab, and xyz colour formats are supported, while colour names such as "purple" or "darkgreen" are invalid.

ResultsStyleSettings Properties

SearchStyleSettings Properties

AddressSelectStyleSettings Properties

Custom Stylesheet

You can develop your own stylesheet with relative ease as each module's elements are very simple to identify with their id's for example the button in the search uses the id "broadband-availability-search-submit" and the input box uses "broadband-availability-search-input". You can use the style template php file used by this library here as a reference


All versions of broadband-availability-php with dependencies

PHP Build Version
Package Version
Requires icuk/api-php Version dev-master
giggsey/libphonenumber-for-php Version ^8.0@dev
spatie/color Version dev-main
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 icuk/broadband-availability-php contains the following files

Loading the files please wait ....