Prerequisites
- PHP 8.2+
- Laravel 12 or 13
- A Commentify Pro license (Composer credentials from Anystack)
- The open-source Commentify package is installed automatically as
usamamuneerchaudhary/commentify:^4.0
Install the package
1
Point Composer at the private repo
After checkout, Anystack gives you credentials for the Composer repository:Use the license key / HTTP basic auth from your Anystack order when Composer asks. This is the only license check — production requests do not phone home.
2
Run the interactive installer
- Frontends — Livewire, React, and/or Vue. The JSON API is always installed; this only affects scaffolding.
- Guard —
web(session cookies) orsanctum(SPA cookies or tokens). See Authentication before you override this. - Spam checkers —
heuristic(default), optionalakismetandtoxicity. - Commentable models — scans
app/Modelsfor theCommentabletrait and writes aliases intocommentables. - Migrations — creates
commentify_spam_logs,commentify_mod_actions,commentify_subscriptions, and addspinned_atoncomments.
config/commentify-pro.php. Core Commentify settings live under the core key. It is safe to re-run. Values you have customised are left alone and printed as next steps.3
Finish JavaScript (React / Vue only)
If you picked React or Vue, the installer copies the SDKs to Point Tailwind at the published SDK so classes are not purged. The installer adds this to See How the JavaScript ships.
resources/js/vendor/commentify/ and adds local file: dependencies to package.json. Then:resources/css/app.css when it can:Scripted installs
Every prompt has a matching option:
Non-interactive default frontend is Livewire. Default spam checker is
heuristic. Default guard is web unless Sanctum is installed and Livewire is not in the frontend list.
What the installer writes
config/commentify-pro.php— unless it already exists (use--forceto replace)- API
guard+ matchingmiddlewaregroup spam.checkerscommentablesaliases (plural kebab of the class basename, e.g.Article→articles)- Livewire views under
resources/views/vendor/commentifywhen you pick Livewire resources/js/components/CommentThread.tsxor.vue(never overwritten unless--force)- Published SDK under
resources/js/vendor/commentify/(always refreshed — treat it as vendor) @sourceinresources/css/app.csswhen the file looks like Tailwind v4AKISMET_KEYin.envif you enable Akismet and paste a key
CommentifyProPlugin is missing, it prints the snippet to add. See Filament.
Manual installation
Prefer to wire things by hand? This is what the installer automates:commentables, pair api.guard with api.middleware, and add the @source directive. Continue with Usage to attach the trait and drop a thread on the page.

