承接 stickleapp/core 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stickleapp/core

Composer 安装命令:

composer require stickleapp/core

包简介

This is my package stickle core

README 文档

README

This software is not ready to be used. Contact me dclaysmith@gmail.com.

Stickle is a package for Laravel that helps you analyze--and interact with--your customer base.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Use Cases

Stickle allows you to embed customer analytics and engagement functionality in your Laravel application. Use it to:

  • Build real-time customer analytics dashboard;
  • Trigger Laravel notifications based on end-user behavior;
  • Highlight important customer behavior in your admin panel;
  • Segment your customer base to identify high value or at-risk customers in realtime.

Stickle Apps allow you to do even more.

Stickle Core

Stickle Core is the foundation of Stickle that:

  • Tracks user attributes and behavior via a Javascript tracking code;
  • Logs authentication events;
  • Logs changes in model attributes;
  • Logs user-defined server-side events;
  • Exposes Eloquent methods for querying your customers;
  • Exposes a REST API for ingesting events from other channels (Mobile, etc);
  • Provides the ability to define customer segments 'as-code' and track these segments over time.

Stickle Apps

Stickle Apps extend the funtionality of Stickle Core. Anyone can write a Stickle app but we'll provide some first-party apps to get people started.

Getting Started

Requirements

Stickle requires:

  • PHP 8.3+
  • Laravel 11.0+.

Installation

You may use Composer to require Stickle into your PHP project:

composer require stickleapp/core

You may install Stickle into your Laravel project using the following command:

php artisan install:stickle

The installer will guide you through the setup process helping you set configuration options for your project. You can specify:

  • If you want to install the Stickle JS SDK and track client events;
  • If you want to track events raised by Illuminate\Auth events;
  • If you want to track each authenticated event via middleware; and
  • How you define the relationships between Users and Groups in your application.

Running Migrations

After you have specified your configuration options in the installation script, run migrations:

php artisan migrate

Initialization

When complete you can run Stickle with the following command:

php artisan run:stickle

This command will does the following:

  • activates cron tasks;
  • activates websockets server (if applicable).

You can access a test page at the URL specified in the terminal.

Advanced Configuration

Stickle will work out of the box using the configuration options specified during the installation process. You can override these (and several other) options in the config\stickle.php file.

Database Options

You can specify the following configuration options:

  • connection. (Defaults to DB_CONNECTION env value) This connection should contain the tracked models.
  • tablePrefix. (Default lc*) This will be prepended to the tables created by the migrations.

Sync Schedule

Stickle runs several jobs to transform your data. You can update the frequency that these jobs run:

  • ExportSegments. (Default Every 360 minutes).
  • RecordSegmentStatistics. (Default Every 360 minutes).
  • RecordEntityStatistics. (Default Every 360 minutes).
  • RollupEvents. (Default Every 360 minutes).
  • RollupPageViews. (Default Every 360 minutes).
  • RollupSessions. (Default Every 360 minutes).

Customer Models

  • User. By default, Stickle assumes the App\Models\User class is the user responsible for authentication events. You can override this class.
  • Group. You can optionally specify a Group class that represents a real world company, account, organization, etc. that a User belongs to.
  • Relationship. You should specify the relationship between the Group and the User. By default, the relationship is Illuminate\Database\Eloquent\Relations\HasMany meaning each Group has zero or more Users objects. Other options include:
    • Illuminate\Database\Eloquent\Relations\HasOne. Each User belongs to one Group and each Group has exactly one User.
    • Illuminate\Database\Eloquent\Relations\BelongsToMany. Each User can belong to zero or more Groups and each Group can have have zero or more Users.
  • Payment. You can optionally specify a Payment model that represents a payment made by a StickleEntity model to your organization.

Tracking Options

Stickle can track requests and events on the server and on the client. There are several configuration options that determine the behavior of each method:

Server

  • loadMiddleware. Default true. When true, Stickle loads middleware during the Package Service Provider's boot method.
  • trackAuthenticationEvents. Default true. Automatically log all authenticated Illuminate\Auth events.
  • trackRequests. Default true. Automatically track all authenticated requests made in the application.

Client

  • loadMiddleware. Default true. When true, Stickle injects a tracking code via middleware during the Package Service Provider's boot method.
  • trackPageViews. Default true. When true, the Javascript tracking code will listen for pushState changes and record a pageview for each.
  • routePrefix. Default ''. Tracking events are sent to the /request endpoint by default. If you move this endpoint to a different location, update routePrefix to reflect this location.

Paths

Where to autoload Segments (ActiveAccounts.php) and export them. Where to autoload Listeners Where to autoload Playbooks (ActiveAccounts.php) and export them (Move to => Stickle Playbooks)

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

stickleapp/core 适用场景与选型建议

stickleapp/core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.86k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 08 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「D Clay Smith」 「stickle.app」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 stickleapp/core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 stickleapp/core 我们能提供哪些服务?
定制开发 / 二次开发

基于 stickleapp/core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-01