Download the PHP package dd/evolutioncms-libraries-ddinstaller without Composer

On this page you can find all versions of the php package dd/evolutioncms-libraries-ddinstaller. 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 evolutioncms-libraries-ddinstaller

(MODX)EvolutionCMS.libraries.ddInstaller

The library for installing and updating snippets, plugins, and libraries from GitHub repositories.

How it works

Terms

Algorithm

  1. First, the library downloads the repository archive of Resource from GitHub using API and temporary saves it in assets/cache/ddInstaller/.
  2. Then it decides whether to install / update Resource or not.
    To do this it looks at the composer.json file from the archive and compares with composer.json of Resource on your Site:
    • Resource will be installed or updated if:
      1. composer.json in the archive:
        • Is exist.
        • And not empty.
        • And contains the valid version field.
      2. composer.json on Site:
        • Is not exist.
        • Or empty.
        • Or doesn't contain the version field.
        • Or the version field is invalid.
      3. version in the archive > version on Site.
    • Otherwise, Resource will not be installed.
  3. To avoid accumulation of trash files, the library removes the existing Resource folder before installation and creates it again (e. g. assets/snippets/ddGetDate/).
  4. If Resource is a snippet or plugin, the library tries to find its DB file (e. g. ddGetDate_snippet.php) and installs / upates it to DB.
  5. Finally, the library copies remaining files and subfolders to the Resource folder.

Requires

Installation

Elements → Manage Files:

  1. Create a new folder assets/libs/ddInstaller/.
  2. Extract the archive to the folder.

Parameters description

\DDInstaller::install($params)

Installs or updates needed snippet, plugin, or library.

Returns

Examples

Install or update the ddGetDate snippet

Just run the following PHP code in your sources or Console:

Links


All versions of evolutioncms-libraries-ddinstaller with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
dd/evolutioncms-libraries-ddtools Version >=0.62.0
dd/evolutioncms-snippets-ddmakehttprequest Version >=2.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 dd/evolutioncms-libraries-ddinstaller contains the following files

Loading the files please wait ....