Download the PHP package jakesutherland/nomad-helpers without Composer

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

Nomad Helpers

A WordPress PHP Composer package that provides helper functions and utilities that are used in other Nomad Composer Packages.

Installation

You can install Nomad Helpers in your project by using composer.

Documentation

Majority of the Nomad Helpers functions and utilities provided are fairly self explanatory and already well documented within the code-base.

Only the important stuff that you need to worry about is below.

Nomad Environment

The NOMAD_ENV constant is used to determine the type of environment that your WordPress installation is running on. This should be defined in your wp-config.php file.

Possible values: development staging production

Default value: production

If you are building out your project locally on your computer, you'll want to configure your environment for development:

If you are testing your website in a staging environment:

If your website is live, configure your environment for production:

It is highly recommended that you never have a live production website set to development.

Nomad Debugging

The NOMAD_DEBUG constant is used to show additional debugging information when in a development environment. This should also be defined in your wp-config.php file.

Nomad Errors

While working on your project in a development environment, you may come across a Nomad Error. The purpose for Nomad Errors is to help steer you in the right direction when developing with Nomad features and utilities.

Nomad Errors will stop all processing and display error messages when NOMAD_ENV is set to development.

If NOMAD_ENV is set to staging or production then Nomad Errors will not be displayed.

IMPORTANT: If NOMAD_ENV is NOT defined and is NOT set to development you will not see any Nomad Error messages! The assumption is that, by default, you're on a production environment.

Nomad Exceptions

Much different than Nomad Errors, Nomad Exceptions happen when the code cannot recover from itself and the application needs to stop processing. Something is broken.

Nomad Exceptions will be displayed regardless of your NOMAD_ENV setting.

Register Nomad Package & Plugin

The register_nomad_package() and register_nomad_plugin() functions register a Nomad Package or Plugin in the global scope. This way the system knows which Nomad Packages or Plugins are available and being used. It passes in the path that its installed to help determine where the specific package is being loaded. This is important because every Nomad Plugin likely utilizes multiple Nomad Packages as dependencies, and each Nomad Package may also have its own dependencies.

Every Nomad Package is developed in such a way that it will only load once, no matter how many instances may be installed across other various Nomad Plugins or Packages.

Changelog

1.2.0

1.1.0

1.0.0

License

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

Copyright

Copyright (c) 2021 Jake Sutherland


All versions of nomad-helpers 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 jakesutherland/nomad-helpers contains the following files

Loading the files please wait ....