Installation
Prerequisites
Stickle requires:
- PHP 8.2+
- Laravel 12.0+.
Installing Stickle
Step 1: Require via Composer
Use Composer to require Stickle into your Laravel project:
composer require stickleapp/coreStep 2: Run the Installer
Stickle provides an installer that will guide you through configuration. Run it via artisan:
php artisan stickle:installThe installer will:
- Publish configuration files
- Run database migrations
- Set up default tracking options
Step 3: Run Migrations
Migrations are typically run by the installer, but you can run them manually if needed:
php artisan migrateStep 4: Install Laravel Reverb (Optional)
If you want real-time features like live event streaming and real-time UI updates, install Laravel Reverb as your websockets server:
php artisan install:broadcastingThis command will:
- Install the Laravel Reverb package
- Publish Reverb configuration files
- Configure broadcasting in your application
For more details, see the Laravel Reverb documentation.
Advanced Installation
The following are handled by the stickle:install command but you may need to run them independently at some point.
Publish Files
You must manually publish files from Stickle to your project.
$ php artisan vendor:publish --provider="StickleApp\Core\CoreServiceProvider"Configuration
Stickle ships with sensible defaults that work with most 'out-of-the-box' Laravel installations.
The stickle:install artisan command will publish /config/stickle.php and setup your initial values.
You can manually configure these settings if necessary.
Migrations
The stickle:install command will run the required migrations automatically. If you need to run them manually:
php artisan migrateRunning Stickle
Once installed, Stickle requires background services to be running.
Queue Worker
Stickle processes jobs asynchronously via Laravel's queue system. During development, run:
php artisan queue:workFor production, configure a process monitor like Supervisor to keep the queue worker running. See the Laravel Queue documentation for details.
Scheduled Tasks
Stickle runs several scheduled tasks in the background to process analytics data. During development, run:
php artisan schedule:workFor production, configure your server's cron to run Laravel's scheduler. Add this to your crontab:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1Laravel Reverb (Optional)
If you want real-time features (live event streaming, real-time UI updates), start Laravel Reverb. For development:
php artisan reverb:startFor production, run Reverb as a background service. See the Laravel Reverb documentation for details.
Next Steps
You're now ready to start using Stickle! Here's what to do next:
- Basic Setup Guide - Get up and running in 15 minutes
- Configuration - Fine-tune your Stickle installation
- Tracking Attributes - Learn how to track model attributes
For deployment to production, see our Deployment Guide.