Download the PHP package shel/asset-names without Composer

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

Asset names for Neos CMS

Latest Stable Version Total Downloads License

Installing this package will change the naming behavior for files when publishing assets in Neos CMS. By default Neos CMS will create a symlink in the public Web folder to the file stored in the private Data/Persistent folder. These symlinks to images and other assets will have the filenames they got when they were uploaded.

New behavior: The symlinks to these assets will have a filename based on their title which can be set in the Media Module.

Advantages

Caveats

In my tests publishing ~1000 resources with this plugin took ~2.5s compared to ~1s without this feature.

How to use it

  1. Install the package via composer composer require --no-update shel/asset-names in your site package.
  2. Run composer update in your project's root folder.
  3. Run ./flow resource:publish.
  4. Change an assets title in the media module and check the resulting filename in the preview.

Adapt the filename schema

You can customise the filename creation via your Settings.yaml. Add the following snippet to your configuration and adapt it to your needs:

It's recommended to keep the width and height suffix.

What the package cannot do yet

It currently doesnt work when not using the provided symlink target.

If you use the copy target or some cloud based filesystem you can extend those targets the same way and provide the change as PR to this package.

Future plans

Contributions

Contributions are very welcome!

Please create detailed issues and PRs.

If you use this package and want to support or speed up it's development, use Githubs sponsor button or get in touch with me

License

See License


All versions of asset-names with dependencies

PHP Build Version
Package Version
Requires neos/neos Version ~4.3 || ~5.0 || ~7.0 || ^8.0
cocur/slugify Version ^2.5
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 shel/asset-names contains the following files

Loading the files please wait ....