Download the PHP package moderntribe/tribe-libs without Composer

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

Tribe Libs is a collection of libraries created by Modern Tribe for use with Square One-based WordPress projects. It is required by the Square One core plugin.

Versions

Tribe Libs Version PHP Constraints Notes
3.x 7.2-7.4 Master branch. No longer maintained.
4.x 7.4+ For use in legacy Square One PHP 7.4 projects where the host is upgrading to PHP 8.0.
5.x+ 8.0+ For use in new Square One projects.

Installation

Usage

All usage documentation lives in the Square One repository.

Support

Usage of Tribe Libs is not actively supported by Modern Tribe outside of client contracts. Pull requests and suggestions are welcome and will be addressed based on business need.

Release Process

This library comprises a large collection of smaller libraries that can be included in whole or in part on Square One projects. These libraries are developed following the monorepo model. All changes are committed to this, the parent project. Maintenance of the individual packages is managed using the Monorepo Builder utility.

Releasing a new version

IMPORTANT: branches must already exist in the sub-repos, use the Create Sub-Repo Branch GitHub Workflow to create them if they don't already exist.

  1. Ensure that all code for the release is merged to the branch that matches the release number, e.g. if you're planning to release an update 4.1.0, that code should live in the 4.x branch. A release such as 5.2.6 should live in the 5.x branch.
  2. Ensure that all updates for the release are logged in CHANGELOG.md under ## Unreleased.
  3. Run the release script, with the version number for the release (format: <major>.<minor>.<patch>): Dry run example for a 4.x release:

    Real release example for a 4.x release:

  4. The script will handle several steps for you automatically:
    1. Set any package interdependencies to the new version.
    2. Update CHANGELOG.md with the appropriate version number.
    3. Create the git tag and push it to GitHub, tagged to the branch you have checked out.
    4. Bump the current branch you have checked out version's to the next version number
  5. When the tag is pushed to GitHub, an Action there will automatically split the monorepo and deploy the tag to all of the package repos. (Note: The GH Action will run as a bot user with appropriate permissions to write to all of the package repositories. Those repositories are read-only for normal usage.)

Adding Packages

  1. Create a new directory for the package in src. Create your code there, include an independent composer.json for the package (you can copy the sample), and commit it to tribe-libs.
  2. Create an empty public GitHub repository for the package (you probably need to be an org admin to complete this step). Follow the naming convention moderntribe/square1-*. Ensure that the user tr1b0t has write access to the repo. Use the script dev/monorepo/scripts/create-package-repo.sh to create the repo and add the tr1b0t user automatically.

  3. Add a single commit (a blank readme is fine) and push it up.
  4. Run the Create Sub-Repo Branch GitHub Workflow to create any missing version branches, e.g. master,4.x, 5.x etc...
  5. Run the script to merge the package composer.json files to the root composer.json file:

  6. After the next release, Register the package on Packagist.

Adding Composer Dependencies

  1. Add the dependency to composer.json in the sub-package(s) that needs it.
  2. Run the merge command to merge dependencies up to the root composer.json

Update the development version

You will rarely need to do this, but it is documented here just in case.

  1. Set the master branch alias for all packages:

  2. Bump the interdependencies among the packages to the same version.

All versions of tribe-libs with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-dom Version *
ext-json Version *
ext-libxml Version *
ext-simplexml Version *
ext-zlib Version *
composer-plugin-api Version ^1.0 || ^2.0
enshrined/svg-sanitize Version ^0.15
filp/whoops Version ^2.2@dev
mhcg/monolog-wp-cli Version ^2.0
php-di/php-di Version ^6.0
psr/log Version ^1.1 || ^2.0
spatie/data-transfer-object Version ^2.8
twig/twig 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 moderntribe/tribe-libs contains the following files

Loading the files please wait ....