Download the PHP package serfix/content-ai-laravel without Composer

On this page you can find all versions of the php package serfix/content-ai-laravel. 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 content-ai-laravel

Serfix Content AI for Laravel

Receive articles published by Serfix Content Autopilot into your Laravel app, store them, and serve them at a URL you choose — with SEO metas, BlogPosting schema and self-hosted images.

This is the Laravel counterpart to the WordPress plugin. Serfix pushes each article to a signed webhook; this package verifies, imports and renders it.

Production: if your box runs opcache.validate_timestamps=0 (typical for PHP-FPM in production), restart the SAPI — sudo systemctl restart php8.3-fpm — or the new package code and config are never re-read, and the install looks like it did nothing.

content-ai:install prints a generated signing secret. Put it in .env:

Then in Content Autopilot → Connect publishing, pick the Laravel tab and enter:

Field Value
Endpoint URL https://your-app.test/serfix/content-ai/webhook
Signing secret the same value as CONTENT_AI_WEBHOOK_SECRET

Confirm the plumbing without waiting for a real publish:

The blog URL

/{prefix}/{slug} — set the prefix and you're done:

Everything the package generates follows it: article URLs, breadcrumbs, the sitemap, and cross-article links inside the HTML. Registered routes:

Route Name
GET /{prefix} content-ai.index
GET /{prefix}/{slug} content-ai.show
GET /{prefix}/feed content-ai.feed
GET /{prefix}/sitemap.xml content-ai.sitemap

Rendering articles inside your own app instead? Set CONTENT_AI_ROUTES_ENABLED=false — the webhook keeps receiving, and you query the model yourself:

Keep your own design

Three globals are available in every Blade view. Drop them into your existing layout and build whatever you like around them:

Same thing as directives or helpers, whichever suits your codebase:

They render to an empty string on any page that isn't showing an article, so they're safe in a layout shared by your whole site — nothing is computed until echoed.

Rendering articles from your own controller? Tell the package which one is current and the globals work there too:

content-ai.render.schema_in moves the JSON-LD to body_below if you prefer it at the end of the document; content-ai.render.related sets how many related links to show (0 to omit). render.globals => false stops sharing the variables entirely — the helpers keep working.

SEO

The globals already include everything below; these components exist for finer control.

meta emits title, description, canonical, robots, Open Graph and Twitter card. schema emits BlogPosting + BreadcrumbList JSON-LD — plus an FAQPage node lifted from the FAQ block Content AI already writes, which is rich-result eligible at no extra authoring cost.

Using your own SEO package? Take the array instead:

Drafts and unpublished articles are automatically noindex, nofollow.

Images are copied to your disk

Articles arrive with <img> pointing at Serfix storage. Every one is downloaded, stored on your disk and the src rewritten — published pages never hotlink someone else's bucket, and they keep working if the original is moved or expired.

A download that fails leaves the original src in place, so a flaky fetch degrades to a hotlinked image rather than a broken one. Only https hosts on config('content-ai.images.allowed_hosts') are ever fetched — that allow-list is an SSRF guard, so widen it deliberately.

Drafts and review

Every delivery is parked as a draft. Drafts 404 publicly and open only through a signed, expiring preview link:

Set CONTENT_AI_PRESERVE_LOCAL_EDITS=true and a row you edited by hand will not be overwritten by a later article.updated delivery.

Events

Hook these to purge a CDN, reindex a search engine, or notify a channel.

Customising

Point content-ai.views.layout at your own layout, or swap the model/controller entirely via content-ai.models.* and your own routes.

The wire format

POST with X-Serfix-Signature: sha256=<hmac_sha256(raw_body, secret)>.

We answer {"ok":true,"id":"…","url":"…","status":"published"}. The url matters: Serfix stores it as the published location, so without it there is no record of where your article actually went.

Security

Three properties this receiver guarantees:

Testing

Requirements

PHP 8.2+ · Laravel 11 or 12

License

MIT


All versions of content-ai-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/support Version ^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 serfix/content-ai-laravel contains the following files

Loading the files please wait ...