Download the PHP package zzdjk6/silverstripe-imagelinkupgrade without Composer

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

silverstripe-imagelinkupgrade

Overview

So, you have already run MigrateFileTask but find that you still need to do a lot of manual work for updating the broken image links in HTMLText and HTMLVarchar fields. Afraid ignoring some places while manual checking? Feel frustrated when trying to find the correct image link after upgrading? Tired of repeating yourself in such a machine-ish task? Your assistant is here!

Explain

Then, how will this tool help you?

In a nutshell, it will find all the places where a broken image link could be replaced with a correct link in all the HTMLText and HTMLVarchar fields of DataObject.

How it does the job? Take a look at ImageLinkUpgradeTask.php, the overall process is:

  1. Retrieve all DataObject classes contains HTMLText or HTMLVarchar field
  2. Retrieve all image records in DB, get the mapping relation of ID, Filename and the accessible URL
  3. Gather upgrade info by each class: which class, which field, what are the old links and their replacement for that field
  4. Apply changes to the database

More details could be found in the code.

How to use

Add dependency via composer:

Then just run it like other tasks: /dev/tasks/ImageLinkUpgradeTask

Caveats

  1. Make sure you backup your database before using this tool (it will modify your database).
  2. Currently, some DataObject will be updated several times due to class inherit (e.g., subclasses of SiteTree). This issue won't affect the final result (just a version jump compare to the original one)
  3. This tool keeps the Status of versioned DataObject in mind, which means if the Live version is not the same as the Stage version, only Stage version will be changed.

All versions of silverstripe-imagelinkupgrade with dependencies

PHP Build Version
Package Version
Requires silverstripe/cms Version ^4
silverstripe/framework Version ^4
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 zzdjk6/silverstripe-imagelinkupgrade contains the following files

Loading the files please wait ....