Download the PHP package sourcebroker/deployer-typo3-media without Composer

On this page you can find all versions of the php package sourcebroker/deployer-typo3-media. 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 deployer-typo3-media

deployer-typo3-media

l:

What does it do?

This package allows to sync media between instances using host data stored in deployer configuration.

It allows to copy files to your local instance, copy files between instances, but also symlink files instead of copy to save disk space (if the staging instance is at the same server as production).

This package only extends sourcebroker/deployer-extended-media with settings specific for TYPO3 CMS.

Installation

1) Install package with composer:

composer require sourcebroker/deployer-typo3-media

2) Put following lines on the beginning of your deploy.php:

require_once(__DIR__ . '/vendor/autoload.php');

new \SourceBroker\DeployerLoader\Loader([
  ['get' => 'sourcebroker/deployer-typo3-media'],
]);

3) Create .env file (or .env.local) in your project root. The .env (or .env.local) file should be out of git because you need to store there information about instance name in var INSTANCE. The INSTANCE value must correspond to host() name.

For following real, example configuration:

<?php

namespace Deployer;

require_once(__DIR__ . '/vendor/autoload.php');

new \SourceBroker\DeployerLoader\Loader([
  ['get' => 'sourcebroker/deployer-typo3-media'],
]);

host('production')
    ->setHostname('vm-dev.example.com')
    ->setRemoteUser('deploy')
    ->set('bin/php', '/usr/bin/php8.4')
    ->set('deploy_path', '~/t3base13/production');

host('staging')
    ->setHostname('vm-dev.example.com')
    ->setRemoteUser('deploy')
    ->set('bin/php', '/usr/bin/php8.4')
    ->set('deploy_path', '~/t3base13/staging');


you would need to create file .env (or .env.local) with following content:

a. INSTANCE=production at host defined by host('production') b. INSTANCE=staging at host defined by host('staging') c. INSTANCE=local at your local env (laptop)

As an alternative you can also not create any env file but make sure that the env variable INSTANCE exists in system at hosts defined in deployer (and also at your local host).

TYPO3 sync media

TYPO3 sync folder is fileadmin with exclusion of _processed_ folder.

set('media', function () {
 return [
     'filter' => [
         '+ /' . get('web_path'),
         '+ /' . get('web_path') . 'fileadmin/',
         '- /' . get('web_path') . 'fileadmin/_processed_/*',
         '+ /' . get('web_path') . 'fileadmin/**',
         '- *'
     ]
 ];
});

Synchronizing media

The commands for synchronizing media for the example above configuration would be:

For more options and way to extend sync process visit sourcebroker/deployer-extended-media.

Changelog

See https://github.com/sourcebroker/deployer-typo3-media/blob/master/CHANGELOG.rst


All versions of deployer-typo3-media with dependencies

PHP Build Version
Package Version
Requires sourcebroker/deployer-extended-media Version ^14 || dev-master
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 sourcebroker/deployer-typo3-media contains the following files

Loading the files please wait ....