Download the PHP package dl/assetsync without Composer

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

Travis Build Status Latest Stable Version Total Downloads License My wishlist on amazon

Neos Asset Synchronization

This package makes it possible to sync files from various sources into the Neos asset management. Sources can be a folder on the local file system as well as cloud services like NextCloud or Dropbox. New sync sources can be added easily. You can specify tags that are assigned to the importet assets in order to find them easily in the media browser.

Available Sources

These are currently available sources, new sources can be implemented easily - take a look at the SourceInterface to see how its done.

These are the available sources. Have a look at the detailed configuration examples bewlow.

Installation and integration

The installation is done with composer:

composer require dl/assetsync

An additional database table is required which is created using:

./flow doctrine:migrate

Usage

Run the synchronization via the command controller:

./flow assetsync:sync <sourceIdentifier>

Or run all available sourceConfiguration:

./flow assetsync:syncall

Source Configuration

Generic Source configuration

sourceClass

Full qualified class name of the source class.

fileIdentifierPattern

This pattern can be used to filter the to be imported files by a given pattern. Currently the file identifier is the filename and path for all implemented sources. This can change for new sources.

Example:

fileIdentifierPattern: '.+\.(gif|jpg|jpeg|tiff|png)'

Default: .*

removeAssetsNotInSource

Configures, if files which are synced in previously, but doesn't exist in the source anymore should be removed from the assets.

Default: false

Local Filesystem Source

Syncs files from a local file system directory.

Implementation DL\AssetSync\Source\LocalFilesystemSource
Required Package none

Configuration Example:

DL:
  AssetSync:
    sourceConfiguration:
      <sourceIdentifier>:
        sourceClass: DL\AssetSync\Source\LocalFilesystemSource
        assetTags:
          - myLocalFileSource
        assetCollections:
          - assetCollectionWithSyncedItems
        sourceOptions:
          sourcePath: '<pathToLocalDirectory>'

WebDav Source

Syncs files from a WebDav Server. This can also be used to sync files from OwnCloud or NextCloud. It uses the packages League\Flysystem for an easier file system abstraction.

Implementation DL\AssetSync\Source\LeagueFlysystem\WebDavSource
Required Package league/flysystem-webdav

Configuration Example for a OwnCloud share:

DL:
  AssetSync:
    sourceConfiguration:
      <sourceIdentifier>:
        sourceClass: DL\AssetSync\Source\LeagueFlysystem\WebDavSource
        sourceOptions:
          baseUri: '<YourOwncloudURI>/remote.php/webdav/'
          pathPrefix: '/remote.php/webdav'
          userName: '<userName>'
          password: '<password>'
          authType: 1
          sourcePath: '<pathToTheFolder>'

Dropbox Source

Syncs files from Dropbox. You need to create an application to retreive the app key on [https://www.dropbox.com/developers/apps]().

Implementation DL\AssetSync\Source\LeagueFlysystem\DropboxSource
Required Package league/flysystem-dropbox

Configuration Example for Dropbox:

dropboxSource:
  sourceClass: DL\AssetSync\Source\LeagueFlysystem\DropboxSource
  sourceOptions:
    sourcePath: '<pathToTheFolder>'
    accessToken: <accessToken>
    appSecret: <appSecret>

All versions of assetsync with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
neos/neos Version ^5.0 || ^7.0 || ^8.0 || ^9.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 dl/assetsync contains the following files

Loading the files please wait ....