Download the PHP package ellingham-technologies/phphelpers without Composer

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

Ellingham PHP Helpers

Some PHP Helpers for common features used within PHP, such as Sessions and Databases.

Released under the MIT licence. Use as you please but please include a copyright notice "Copyright (c) 2019 Ellingham Technologies Ltd". This can be placed on a separate attribution page, warranties page, etc. Under the MIT licence, we offer no warrenty for use of this library. Public contributions to EllinghamTech/PHPHelpers are welcome.

If there are any features you believe should be added, feel free to open an issue.

Installation

With Composer

Using Composer (https://getcomposer.org) simply run

or add this line to the require section of your composer.json file and use composer to update/install:

As this is early days, we should point out that the library is quite limited. You can use the "dev-master" release (which is the latest and greatest) - but this could always lead to site-breakages if there is an error somewhere in the development library - so don't use on production sites.

Without Composer

Not a problem!

We've included a custom AutoLoader (src/EllinghamTech/AutoLoad.php) that can be used or you can include the classes individually as you please.

Using the AutoLoader

Simply include the AutoLoad.php file and start using!

Without the AutoLoader (not recommended)

Ensure you include any require interfaces and abstract classes, etc.

E.g.

What's Inside

Sessions

No Login

NoLogin is a basic session wrapper that deals with holder user error messages and notifications.

SingleUse

SingleUse was created becuase of GDPR. It is a NoLogin based session wrapper but only keeps a session active for two loads - the first creates the second and on the second load it will destroy the session.

An example of usage would be:

myContactUsFormProcessPage.php - Processes the contact us form and generates a success message on completion or error message on failure. Stores these messages using EllinghamTech\Session\SingleUse

myContactUsPage.php - Begins SingleUse but only reads notification data. If an error or success is found then show the user this message. Session is destroyed. GDPR complete - no cookies stored for more than 1 page view.

Templating

Template

The Template class provides a basic wrapper for website templating. Designed so that you can include() a template page that then accesses the Template instance to write the page content.

Designed to replace the idea of Wordpress' top.php bottom.php malarkey.


All versions of phphelpers with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-pdo Version *
ext-curl Version *
ext-json Version *
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 ellingham-technologies/phphelpers contains the following files

Loading the files please wait ....