Download the PHP package chatixy/statamic-chatixy without Composer

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

Chatixy AI Support Agent - Statamic addon

Adds the Chatixy AI support agent to every front-end page of a Statamic site. Install, paste your widget key, save. No template edits, no {{ ... }} tag to place, no partial to include.

Requirements

Statamic 6.0+
PHP 8.3+ (Statamic 6's own floor)
Licence works on Core (the free tier) as well as Pro

Statamic 5 is not supported: it has no addon settings screen, so there would be nowhere in the Control Panel to paste the widget key, and the alternative is asking you to hand-edit a YAML file - which is the template edit this addon exists to avoid.

Install

Then open the Control Panel and go to Tools -> Addons -> Chatixy AI Support Agent. Paste the Widget key from your Chatixy dashboard and save.

The field accepts any of the three shapes the dashboard hands out:

The key is extracted from whatever you paste. Leave it empty and the addon does nothing at all.

No Chatixy account yet? Start at https://chatixy.com/register.

What it does

On every front-end HTML response it splices one tag in before the closing </body>:

That is the whole payload. Nothing is added to <head>, no CSS, no extra requests from the server side.

Static caching

The addon injects inside Statamic's static-cache middleware, so the tag is part of the bytes the cacher stores - it survives into both the half-measure cache and the full-measure .html files on disk. There is no per-request PHP cost on a cache hit.

The consequence is that changing the key has to invalidate those cached pages, or the site keeps serving the old key. The addon does that for you: it listens for Statamic\Events\AddonSettingsSaved and calls StaticCache::flush() when its own settings are saved and a static-caching strategy is configured. If you ever edit resources/addons/statamic-chatixy.yaml by hand instead of using the CP screen, no event fires, so flush it yourself:

Where it does not inject

By design, and unit tested:

Security: the origin is pinned

The widget key is public; the host is not configurable. There is no "advanced host" field, no config key and no environment variable, because the stored host would build a first-party <script src> on every page of the site - i.e. site-wide stored XSS if it could be influenced. ChatixyKey::sanitizeHost() accepts only an https origin whose host is chatixy.com or a subdomain of it, and returns the canonical origin for anything else. The pattern is anchored at both ends, so evilchatixy.com, chatixy.com.evil.com, [email protected] and http://chatixy.com are all rejected.

Support

MIT licensed. See LICENSE.


All versions of statamic-chatixy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
statamic/cms Version ^6.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 chatixy/statamic-chatixy contains the following files

Loading the files please wait ...