Download the PHP package webudvikleren/laravel-utm-manager without Composer

On this page you can find all versions of the php package webudvikleren/laravel-utm-manager. 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 laravel-utm-manager

Laravel UTM Manager

📈 Simple UTM tracking middleware for Laravel. Capture UTM parameters from the URL and make them easily accessible via session or helper methods. Great for tracking marketing sources across forms, registrations, or orders.


✨ Features


🔧 Installation

Publish the config file:

🚀 Usage

1. Add middleware

You can register the middleware globally or per route:

Or assign it to specific routes:

2. Access UTM data

Use the facade to get stored UTM parameters:

3. Automatically attach UTM data to Eloquent models

Add the HasUtmData trait to your model:

When creating the model, UTM fields will be auto-filled (if present in the session).

4. Store UTM data in a related model

If you want to store UTM data in a separate model (e.g., utm_visits), use the HasUtmRelation trait:

Then define the related model like this:

The related model class and table name are both configurable via config/utm.php.

5. Generate a migration for related UTM data

The package includes an Artisan command to generate a migration based on the configured UTM keys and table name.

This will generate a migration with the correct user_id foreign key and all defined UTM columns.

6. Publish the default UtmVisit model

To create a prebuilt UtmVisit model in your app/Models folder:

`

You can then customize the model or change the class in config/utm.php.

⚙️ Configuration

📦 Example URL

Send traffic with UTM parameters to your app:

https://yourapp.com/register?utm_source=facebook&utm_medium=social&utm_campaign=summer-sale

The package will capture and store these in the user's session.

✅ Roadmap Ideas


All versions of laravel-utm-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.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 webudvikleren/laravel-utm-manager contains the following files

Loading the files please wait ...