Download the PHP package moderntribe/weglot-companion without Composer

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

Weglot Companion

Provides additional functionality for the Weglot Translate Plugin.


This plugin makes available the following features:

  1. Translation caching using object caching.
  2. Better translate filters/interfaces for developer use to translate content manually that Weglot is unable to translate.

Manually translate content that Weglot misses, like HTML returned from an Ajax request.

The Weglot plugin must be installed and activated for this to work, otherwise it will just silently return the original content.

Translate an HTML string

Translate an array of HTML strings


Requirements

Quick Start First Run

  1. Install SquareOne Docker (so)
  2. Run: nvm use
  3. Run: yarn install
  4. Run: yarn mix
  5. Run: so bootstrap
  6. Activate your plugin(s) in the WordPress dashboard and start developing!

Pull Requests / Building

Ensure you run nvm use and yarn prod and commit the resources/dist folder before submitting a PR, so the plugin includes the latest front-end production build.

Front end

Front end building is powered by Laravel Mix.

Installation

Usage

Run once: nvm use and then...

Build for development:

Watch for file changes:

Poll for file changes:

Watch with hot module replacement:

Build for production:

See more options: yarn mix --help

Installing this plugin

Composer

If you're using our SquareOne Framework with Tribe Libs v3.4+ you can likely just create a release and composer require the plugin. However, if this results in composer conflicts that can't be resolved, use the private composer method below.

Private Composer Installer

Every published release automatically creates a weglot-companion.zip which is a fully built and vendor scoped WordPress plugin, about a minute after the release is published. To manually install, visit a release and download and extract the zip in your WordPress plugins folder.

However, the best way to include the release zip is by using the fantastic ffraenz/private-composer-installer plugin.

Add a custom repository to your project's repository key in composer.json:

NOTE: Simply update the version above and run composer update to upgrade the plugin in the future.

Then, add the plugin definition to the require section:

Tell composer where to put your WordPress plugins/themes via the extra section.

NOTE: Adjust the paths based on your project.

You may have to allow this plugin in your config as well:

Finally, install the plugin:

Tests

Automated testing is powered by wp-browser and Codeception.

so test is a proxy command for the codeception cli.

Run all test suites:

Or, run an individual test suite: unit, integration, functional, webdriver, e.g.

Or, run with debugging enabled:

Credits

License

GNU General Public License GPLv2 (or later). Please see License File for more information.

Modern Tribe

https://tri.be/contact/


All versions of weglot-companion with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-readline Version *
johnbillion/extended-cpts Version ^4.0||^5.0
league/uri Version ^6.5
moderntribe/tribe-libs Version ^3.4.13
spatie/data-transfer-object Version ^2.8
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/weglot-companion contains the following files

Loading the files please wait ....