Download the PHP package justbetter/statamic-content-usage without Composer

On this page you can find all versions of the php package justbetter/statamic-content-usage. 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 statamic-content-usage

Statamic Content Usage

Track and analyze asset and entry usage across your Statamic site. Identify which assets and entries are being used, find unused content, and export detailed reports to CSV.

Features

Installation

You can install this addon via Composer:

Usage

Dashboard Widgets

After installation, you'll find two widgets available in your Statamic dashboard:

Asset Usage Widget

The Asset Usage widget allows you to:

Entry Usage Widget

The Entry Usage widget allows you to:

Artisan Commands

Export Asset Usage

Export a CSV report showing which assets are used across content sources:

Options:

Example:

Export Unused Assets

Export a CSV list of assets that aren't being used anywhere:

Options:

Examples:

Export Entry Usage

Export a CSV report showing which entries from a collection are referenced across content sources:

Options:

Example:

Export Unused Entries

Export a CSV list of entries from a collection that aren't referenced anywhere:

Options:

Example:

CSV Export Formats

Asset Usage Export

Column Description
Asset Path The path to the asset file
Asset URL The public URL of the asset
Asset Basename The filename of the asset
Source Title The title of the content source using the asset
Source URL The URL of the content source (when available)
Source Type The source type/handle (e.g. collection, globals, navigation, taxonomy)

Entry Usage Export

Column Description
Entry Title The title of the referenced entry
Entry URL The URL of the referenced entry
Entry Collection The collection handle of the referenced entry
Source Title The title of the content source referencing it
Source URL The URL of the content source (when available)
Source Type The source type/handle (e.g. collection, globals, navigation, taxonomy)

Unused Assets Export

Column Description
Asset Path The path to the asset file
Asset URL The public URL of the asset
Asset Basename The filename of the asset
Container The asset container handle

Unused Entries Export

Column Description
Entry ID The ID of the unused entry
Entry Title The title of the unused entry
Entry URL The URL of the unused entry
Collection The collection handle

Use Cases

How It Works

The addon scans content sources in your Statamic site and:

  1. Sources scanned:

    • Entries
    • Globals (all localizations)
    • Navigation trees
    • Terms (all localizations)
  2. For Assets: Extracts asset references from source data, including:

    • assets:: prefixed IDs (e.g., assets::main::image.jpg)
    • Plain file paths that can be resolved to assets
  3. For Entries: Extracts entry references from source data, including:
    • entry::collection::id format references
    • Plain UUID references that match entries in the tracked collection

The addon then generates comprehensive reports showing relationships between your content.

License

This addon is licensed under the MIT license.


All versions of statamic-content-usage with dependencies

PHP Build Version
Package Version
Requires statamic/cms Version ^6.0
php Version ^8.4|^8.5
league/csv Version ^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 justbetter/statamic-content-usage contains the following files

Loading the files please wait ...