Download the PHP package jonbaldie/functions without Composer

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

PHP Functional Programming Skeleton Project

CI

Functions is a PHP skeleton project built upon a foundation of pure functions. It's a fun personal project of mine but it is unit tested and stable, if you'd like to give it a go.

Just run this to get started:

Then to generate your front-end assets:

Protect the encryption key

Composer creates .key with owner-only permissions. The project directory must support hard links so the generator can publish a complete key without overwriting an existing one. Keep the file outside any public web directory. If the web server runs as another user, give that account read access through a dedicated group or an access control list. For example, add the runtime account to a dedicated group, set that group on .key, and use mode 0640. Restrict access to the project directory as well.

Existing keys and their permissions are not changed. Review keys generated by earlier versions for exposure. If a key may have been exposed, plan a rotation and re-encrypt protected values before retiring the old key.

Start a local PHP server:

Open http://localhost:3000 and you should see "It works!"

See the 2026-11-06 exploratory pass for setup, routing, asset, and key observations.

expose_env() gives $_ENV values precedence and skips process lookups for those keys. It still looks up each other process key separately, so a large environment with few $_ENV overrides can take quadratic time on glibc. env() reads one key without rebuilding the full merged snapshot.

Wait, what's a "pure function"?

Pure functions map variables from an input and produce an output, with no observable side-effects. They're easily testable, can be moved anywhere, and used in any context with no unexpected effects. This concept comes from functional programming languages like Clojure, Scala, or Haskell.

Functional programming - an approach that holds pure functions at its core - is growing in popularity. Developers are challenging the utility of traditional methods that run the risk of producing code that's difficult to debug. What's simpler than a pure function that does nothing more than map an input to an output?


All versions of functions with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-mbstring Version *
ext-openssl Version *
ext-pdo Version *
ext-sodium 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 jonbaldie/functions contains the following files

Loading the files please wait ...