Download the PHP package globetrotters-ai/symfony-bundle without Composer

On this page you can find all versions of the php package globetrotters-ai/symfony-bundle. 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 symfony-bundle

Globetrotters AI Presence — Symfony Bundle

Latest Version Downloads CI

Serves your Globetrotters Official AI Presence at your site's apex domain. The bundle pulls the published artefact set from your Globetrotters subdomain on a schedule, caches it, and serves it from a kernel.request subscriber that runs before routing — so it works even when a reverse proxy, security bundle, or catch-all controller would otherwise intercept /.well-known/*, and serving needs no filesystem write access.

What your apex serves once installed:

Path Content-Type
/llms.txt text/plain; charset=utf-8
/ai.json application/json; charset=utf-8
/schema.json application/ld+json; charset=utf-8
/.well-known/mcp.json application/json; charset=utf-8
/.well-known/agent-card.json application/json; charset=utf-8
/.well-known/ai-catalog.json application/json; charset=utf-8 (since 0.7.0)
/.well-known/agent-skills/index.json application/json; charset=utf-8 (since 0.7.0; also at /.well-known/agent-skills and /.well-known/agent-skills/ since 0.9.1)
/agent.json application/json; charset=utf-8 (since 0.7.0)
/AGENTS.md text/markdown; charset=utf-8 (since 0.7.0; also at /agents.md since 0.9.1)
/.well-known/globetrotters-apex-version.json application/json; charset=utf-8 (version/drift marker)
/.well-known/api-catalog application/linkset+json (since 0.8.2, generated locally, see below)

Every artefact response carries X-Content-Type-Options: nosniff, Cache-Control: no-store, private, Surrogate-Control: no-store and Access-Control-Allow-Origin: * (every artefact is public, unauthenticated, read-only metadata, so it's readable cross-origin by browser-context agent clients). Heavy files (llms-full.txt, content.md) are intentionally not served locally — they are linked back to Globetrotters by absolute URL.

One further path is served when Globetrotters has issued your environment an IndexNow key: /<key>.txt, text/plain; charset=utf-8, body the key and nothing else. IndexNow verifies control of a host by reading that file, and it must sit at the apex root — a key under /.well-known/ would scope submissions to that directory and cover none of the artefacts above. Being able to serve it is what lets new and updated presence content be announced from your domain rather than only from the Globetrotters-hosted mirror.

Nothing to configure: the key arrives on the version marker with your normal refresh, is stored in the bundle's runtime state, and is withdrawn on the first refresh whose marker no longer carries it. When there is no key the path is not served at all — your application answers its own 404, never a 200 with an empty body. The key response carries the same nosniff and no-store headers as the artefacts, and the bundle does not add Access-Control-Allow-Origin to it: the key is fetched server-side by a search engine, so the cross-origin grant stays scoped to the discovery documents that need it. If your app adds CORS headers to every response, they are left in place rather than stripped — the key is public by construction, so nothing is disclosed by that. Requests for it are not counted in Presence Analytics, which stays a measure of AI agents fetching your discovery files.

A rotated key reaches your install on its next refresh (daily by default), so submissions for your host can fail verification during that window.

/.well-known/api-catalog is an RFC 9727 API catalog: a linkset anchored on your homepage that points agents at /llms.txt (service-doc) and at the MCP card, the agent card and the AI catalog (service-desc), and lists your MCP server, the first remote in the cached MCP card, under item (since 0.9.1). Like the sitemap below it is generated from the cache on every request, in the URL space of the request it arrives on, and lists only what this install serves; with no bundle cached the path is left to your application. It carries the artefacts' headers, Access-Control-Allow-Origin: * included, and agent requests for it are counted in Presence Analytics.

One more path is served once a bundle is cached: /ai-sitemap.xml (application/xml; charset=utf-8), a sitemaps.org <urlset> over your homepage plus every artefact this install is actually serving, in the URL space of the request it arrives on. It is generated locally rather than fetched, so it can never advertise a URL your site does not answer, and it needs no configuration to know your domain. robots.txt declares it, so crawlers discover it the standard way.

Not /sitemap.xml, deliberately. That path is yours — served by your app, a static file, or redirected onto an SEO bundle's index — and the bundle never claims it. An artefact listing is not a substitute for your site's sitemap, and robots.txt takes a list of Sitemap: directives, so this one is additive to whatever you already declare.

The response carries nosniff and both no-store headers — the document is rendered from the cache and from this request's own host, so a shared TTL could keep advertising a URL a later refresh dropped, or hand a host alias another host's URLs — and no Access-Control-Allow-Origin, matching the IndexNow key: a sitemap is fetched server-side by a crawler. Requests for it are not counted in Presence Analytics; a crawler scheduling a fetch is not an agent consuming your presence.

On top of the routes, the bundle:

Requirements

Before you install

Four questions about the hosting decide the configuration. Each answer below says what to set, or that the default already fits.

1. One web server, or several behind a load balancer? The default cache pool is the bundle's own filesystem pool, under var/globetrotters-ai-presence/cache: local to each server, so a refresh fills only the server it runs on. With several servers, set cache_pool to a pool they all share, such as Redis, and run the refresh on one of them. With one server the default works; on a deploy that switches release directories (Deployer, Capistrano), list var/globetrotters-ai-presence as a shared directory, or each release starts with an empty pool.

2. Do cron (or the Messenger worker) and PHP-FPM run as the same OS user? The refresh writes the reporting configured both write buffer_dir. If they are the same user, nothing to do. If they differ, add both users to one group: the bundle creates both directories 2770 (setgid) and their files 0660, so a shared group is all it needs. Either way, on a release-directory deploy, list var/globetrotters-ai-presence (the pool and the default buffer_dir) as a shared directory. gt:status, run as each user, reports a file that user cannot write.

3. Cron or symfony/scheduler? Either works, but pick one: the two do the same job (a second lane running at the same moment skips, see symfony/scheduler when a worker already runs. With neither, the opportunistic flush still sends reporting on PHP-FPM, FrankenPHP and LiteSpeed, but nothing refreshes the artefacts: they update only when gt:refresh runs, so make it a deploy step and expect published changes to reach the apex only at your next deploy.

4. Is the site behind a reverse proxy, load balancer or CDN that terminates TLS? If so, set framework.trusted_proxies and make sure the proxy forwards the original Host. The bundle builds absolute URLs from the request: the robots.txt Sitemap: line, every /ai-sitemap.xml entry and every link in /.well-known/api-catalog. Without trusted_proxies those URLs say http:// and reporting records the proxy's IP instead of the agent's. If the proxy also rewrites Host, they name the backend's internal host, and the page-view counter's same-origin check rejects every view. Behind Cloudflare, also set reporting.trust_cloudflare_header: true (see Behind a proxy or CDN).

After installing, bin/console gt:status (add --remote to also query Globetrotters for the latest version) shows whether the bundle is connected, whether a bundle is cached, and how reporting is doing.

Install

If your app doesn't use Symfony Flex, register the bundle manually in config/bundles.php:

Configure

Then trigger the first pull and verify:

Then click Check install in Studio's Deploy step. Studio reads that version marker off your site, checks that it names your organisation's destination and compares it with your latest publish (a newer publish shows as an update that the next refresh, or gt:refresh --force, picks up). When your organisation has verified this domain, the same check marks the install verified, which is what lets Studio issue the reporting token. No DNS record or extra file is needed. If your site redirects (bare domain to www., say), Studio offers to switch to the address that actually serves.

Keeping it fresh

Two supported wirings — pick one lane. Cron and the Scheduler do the same job, and two runners firing together would each pull the whole artefact set. The refresh takes a lock (buffer_dir/refresh.lock, the same kind the flush uses), so if two runs meet anyway — both lanes, two cron entries, a deploy hook firing during the cron run — the second one exits at once with Another refresh is already running and status 0, and the next one finds the refresh not due. The lock is per server: with several servers, schedule the refresh on one.

1. Cron (default, zero-worker deployments)

Schedule gt:refresh from system cron or a systemd timer. The command respects refresh_interval internally (it no-ops when a refresh isn't due yet), so running it hourly is safe:

2. symfony/scheduler (if you already run Messenger workers)

With symfony/scheduler and symfony/messenger installed, the bundle auto-registers a schedule named gt that asks for a refresh every hour and pulls only when refresh_interval has elapsed — the same due-check as the hourly cron line above. A worker started on an empty cache (after a deploy or cache:clear) therefore refills it within the hour, and a failed pull is retried hourly. Run it with:

Runs missed while the worker was stopped are collapsed into one on Symfony 7.1+. Symfony 6.4 LTS has no such option and replays them one by one, which is harmless: a refresh or a flush that is not yet due does nothing.

Cache pool

The refresh and the serving are two processes: gt:refresh runs from cron (or the Scheduler's worker), and PHP-FPM serves. The cache pool is the only thing that carries a pulled bundle from the first to the second, so every process must read the same pool. If they don't, the refresh succeeds and reports the new version, and the apex keeps serving the bundle it had, for good.

The default is the bundle's own pool, globetrotters_ai_presence.cache: a filesystem pool under %kernel.project_dir%/var/globetrotters-ai-presence/cache. Leave cache_pool unset to use it. It is outside var/cache, so neither cache:clear nor a deploy that empties var/cache drops the bundle, and it is shared like buffer_dir: directories 2770 (setgid, so files take the directory's group) and files 0660, whatever the umask, so a cron user and a web user in one group can both use it. Nothing in it is world-readable. On a threaded server (FrankenPHP in thread mode) the umask is left alone, since it is process-wide there; run the refresh as the server's user.

Why not cache.app. Before 0.9.4 the default was cache.app, and an application is free to map cache.app to APCu. APCu is memory private to one process: PHP-FPM's pool has one, each CLI run has its own (or none), so a cron refresh writes where the web never reads. cache.app also lives in var/cache, which cache:clear and every deploy empty. cache.system has the same problem: it puts an APCu tier in front of its files wherever APCu is enabled.

Pools that are refused. An APCu pool, an in-memory array pool, cache.system, and any chain or tag-aware pool with one of those in it fail the container build, naming the pool and this section. Nothing at runtime can tell such an install from a healthy one, so it never goes live.

Choosing another pool. Set cache_pool to a pool every process reads:

Checking it. Every successful pull records who made it (version, time, host, project directory, APP_ENV, user), and the web server records the version it serves on homepage and artefact requests (buffer_dir/served-version.json, rewritten when the version changes or every five minutes, on every install). gt:status shows both as Pulled by and Web serving, and when a web request made after the pull still served another version it prints, in red:

The two lines name the user, host, environment and project directory on each side, which is usually the difference: a cron running APP_ENV=prod while the web runs dev, a cron pinned to an old release, another server.

A refresh the pool refuses. When the pool will not take the bundle (a directory the cron user cannot write, a Redis that is down), gt:refresh exits 1 with the pool's own reason (fopen(…): Permission denied and the path), the last good bundle keeps serving, and the failure is recorded in buffer_dir/refresh-error.json — outside the pool, which is the one place it could not be recorded. gt:status shows it in red, with the version the pull could not install and who ran it, until a pull succeeds. The served version also goes to Globetrotters with every report (captureContext.servedVersion), so Studio can show the same warning.

Upgrading to 0.9.4. No configuration change. An install that never set cache_pool moves to the new pool, which starts empty. Until the first refresh fills it, the bundle 0.9.3 left in cache.app keeps serving, read-only (gt:status says so under Bundle cached), and the first refresh is due at once whatever the interval. Still run bin/console gt:refresh as the deploy step that ships 0.9.4: the fallback serves only what cache.app still holds, and a deploy that clears var/cache (or restarts PHP-FPM with cache.app on APCu) leaves nothing to fall back on until the cron's next tick. Once the new pool holds a bundle, cache.app is not read again. An install that set cache_pool explicitly has no fallback. An install that set cache_pool explicitly keeps it, unless it is one of the refused pools above, in which case the build says so.

robots.txt

The bundle appends one block to your /robots.txt — or serves it as the whole file when your app has none — naming the AI user agents in the Globetrotters registry, with a Content-Signal for them, an Agentmap: /.well-known/ai-catalog.json line for the catalog this install serves, and a Sitemap: line for /ai-sitemap.xml on the host the request arrived on.

Naming an agent is not neutral, so by default the block changes nothing a crawler may fetch. Under RFC 9309 a crawler obeys only the group(s) naming it, and falls back to User-agent: * only when none does. A named group saying Allow: / would release that agent from every restriction in your wildcard group — WordPress's Disallow: /wp-admin/, a staging site's Disallow: / — and one added for an agent you already name would merge with your rules for it and outrank them. So:

Anything broader is a decision about your whole site, so it is an explicit opt-in:

With both, and no wildcard rules of your own, the block is byte-for-byte the one Globetrotters serves on its own hosts. A Content-Signal your wildcard group declares is kept either way: allow_all grants crawl permission, and does not overwrite what you have said about how your content may be used.

The list of agents follows Globetrotters, with no bundle update. With reporting configured, the daily fetch that brings the AI vendors' address ranges also brings the current crawler registry, stored as ai-user-agents.json in buffer_dir, so a crawler Globetrotters adds is named on your robots.txt within a day. Without reporting, or when that list is missing, more than 14 days old or unusable, the bundle names the 26 agents it ships with, exactly as before. Only robots.txt product tokens (letters, - and _) are ever written on a User-agent: line.

The block never adds a User-agent: * group, which would be combined with yours. HEAD /robots.txt is answered with no body but with the decorated GET's ETag and Content-Length (and, like the GET, no Last-Modified), so a HEAD can never invalidate a cached GET.

Reporting agent traffic

An apex install is pull-and-cache, not proxy. A request to https://your-domain.example/llms.txt is served by this bundle and terminates inside your application — it never touches a Globetrotters edge, so without this it is invisible and your apex looks like it gets no agent traffic at all.

Turn it on by setting the two values Studio issues together on the apex install screen (the token is shown exactly once). Studio issues them once Check install has verified the install on a domain your organisation has claimed (see Configure):

That is all: since 0.7.1 the bundle reads these two variables with no config of its own. Check with bin/console gt:status, which shows the endpoint and the last four characters of the token, or names the variable it cannot see. If .env.local.php exists (composer dump-env prod), .env.local is ignored until you run composer dump-env prod again.

Declaring reporting.endpoint / reporting.ingest_token in the bundle config is only needed to read other variables (or literal values); a declared key replaces the default. Installs that already declare the documented %env(GLOBETROTTERS_INGEST_*)% bindings behave exactly as before.

The endpoint must be https://: it receives the token and every client IP. A literal http:// value fails the container build; one read from a variable reads as unset at runtime, so reporting stays off and gt:status says why.

Both are required; until both are set nothing is captured and nothing is written to disk. What is sent, per served artefact request: a UUID, a UTC timestamp, the canonical path, the User-Agent, the client IP, the referer, the status and the byte size, plus the Web Bot Auth headers of a signed request (see below). No cookies, no per-visitor identifiers. The backend uses the IP transiently to verify the agent against published vendor ranges and to resolve a country, then drops it — it is never stored.

That covers AI agents fetching your discovery files. Since 0.8.0 it also covers bots fetching the pages of your site (below), on by default. Your human visitors are never reported unless you also turn on the page-view counter below, which is off by default; when on, it adds a tiny script that posts to your own site, and keeps counts only: no IP, no cookie, no User-Agent string, no referrer.

Pages fetched by AI agents and other bots

Once reporting is configured, the bundle also reports which HTML pages of your application are fetched by AI agents and other bots, so Presence Analytics can show the pages AI agents actually read. It is on by default, and switched off with:

What is sent, per page fetched by a probable bot: the User-Agent, the page path (never the query string), the response status and size, and whether the visit came from a verified AI vendor address; for a request signed with Web Bot Auth, its Signature-Agent, Signature-Input and Signature headers as received and the host it was served on, which Globetrotters verifies against the agent's published keys. Never an IP address, and nothing about human visitors.

Bot counts are a floor: a request answered by a page cache or CDN in front of the application never reaches it. Each flush therefore carries a small captureContext: whether site capture is on, symfony-http-cache when the kernel runs behind Symfony's HttpCache, which CDN or proxy headers (CF-Ray, X-Varnish, Via, X-Cache and similar) were seen on recent requests, and the version and date of the vendor range list. Studio shows the bot numbers as "at least" when something sits in front.

Keeping AI agents out of a page cache (optional)

A cache in front of the application answers AI agents too, and those visits are never counted. You can let the AI assistants' live-answer and AI-search agents through to the application, uncached. The trade-off: those agents get uncached pages, a small extra load on your servers. Training crawlers and search engines stay cached. The bundle never changes your cache or proxy configuration, so this is a snippet you add yourself. The WordPress plugin can do it for you, for its supported page caches.

The list of agents is the cacheExclusionUserAgents member of the ranges document the bundle already fetches (<endpoint>/ranges, with your ingest token). It changes when AI vendors add agents. As of this release:

Symfony HttpCache (your AppCache or kernel cache class): skip the lookup for those agents. pass() forwards the request to the application without reading or storing the cache.

Varnish (vcl_recv):

nginx fastcgi_cache (use proxy_cache_bypass / proxy_no_cache with proxy_cache):

A CDN needs the same rule in its own cache settings. Studio keeps showing your bot numbers as "at least" while symfony-http-cache or a CDN header is seen: the bundle cannot check what your proxy does with these agents.

Scheduling the flush

Events are buffered locally and flushed at most every 15 minutes. Three lanes, all sharing one interval, so whichever you have wins and the others stay dormant. The interval is checked under the flush lock, so two lanes firing a second apart never both send; gt:presence:flush --force skips the interval but never the lock.

1. Cron (recommended). The command enforces the 15-minute cadence itself, so running it more often is safe:

2. symfony/scheduler. With symfony/scheduler and symfony/messenger installed the gt schedule asks for a flush every 5 minutes, alongside the artefact refresh, and the shared interval decides — so, like the cron line above, flushes land every 15 to 20 minutes (bin/console messenger:consume scheduler_gt).

3. kernel.terminate fallback (on by default, where the runtime allows). For a shared host with no cron and no worker: a request for one of the artefacts triggers at most one flush per 15 minutes, after its response has been sent. Your own pages, robots.txt, /ai-sitemap.xml and the IndexNow key never trigger it.

It only runs where PHP delivers the response before kernel.terminate: PHP-FPM, FrankenPHP and LiteSpeed. On Apache mod_php, the CLI server and other runtimes the visitor would still be waiting, so the lane stays off there and you need lane 1 or 2. Even where it runs, the visitor has their response but the PHP worker stays busy for the ingest call (up to 20 seconds) and serves no one else meanwhile — on a small worker pool, prefer cron. Set reporting.opportunistic_flush: false to disable it.

bin/console gt:status reports which lane last flushed, how many events are buffered, how many were dropped, whether client-IP resolution looks trustworthy, whether site bot capture is on, and how old the vendor range list is.

Counting human page views (optional)

Presence Analytics can set agent traffic against how many people view each page of your site — the denominator it cannot otherwise see. It is off by default, a separate opt-in on top of reporting, and needs reporting configured:

Then place the script in your base layout, anywhere in the page (before </body> is conventional):

It renders nothing while the counter is off or reporting is not configured, so it is safe to leave in the template. If you would rather not touch templates, auto_inject: true has the bundle insert it before </body> on every 200 HTML response (never on XHR responses, never twice if you also placed it yourself). That is a second opt-in on purpose: otherwise the bundle only ever injects <head> markup that runs nothing.

Content-Security-Policy. The script is inline. If your policy forbids inline scripts, pass your per-request nonce to the Twig function — with NelmioSecurityBundle, {{ gt_ai_presence_beacon(csp_nonce('script')) }} — and it is rendered, escaped, as the tag's nonce attribute. The auto-injected copy carries no nonce, so auto_inject needs 'unsafe-inline' in script-src; under a nonce-based policy use the Twig function instead.

How it counts. The script is one line, under 500 bytes, and the same byte for byte in the WordPress plugin:

It posts the page's path — never its query string — to /.well-known/globetrotters/pv on your own site, and, when there is one, the host of the page that linked to it (never the full referring URL, and nothing when the visitor came from your own site) and the value of the page's utm_source parameter (left out when longer than 100 characters). The browser never talks to Globetrotters. A page the browser only prerenders (Speculation Rules) is not counted until it is actually shown. The bundle answers that POST before routing and the firewall — always with the same empty 204, even while the counter is off, so pages cached while it was on do not run into your application's 404 — and, when the counter is on:

It never reads the client IP, never stores the User-Agent string, the referrer or the utm_source value, and never sets a cookie. A day's counts are sent in the regular flush only once that UTC day has ended, each record with an id minted once so a retried flush cannot double-count, and deleted locally once accepted. Days older than a week are dropped, as Globetrotters would drop them. With enabled off, a flush neither seals nor sends page views; counts not yet sent stay on disk (a CLI or worker that is merely missing the setting cannot delete what the web tier counted) and age out after a week like any other day. Turn it back on and they go with the next flush. The counts are indicative: visitors with JavaScript off are missed, and a same-origin endpoint can be spammed — they are never billed on.

Page views are flushed by every lane, including a run with no agent traffic buffered, so cron and symfony/scheduler carry them as they carry events. On the kernel.terminate lane a beacon request can trigger the flush too (a beacon is fire-and-forget, nobody waits on it), so an install with no cron still sends them. gt:status shows whether the counter is on, how many records are waiting, and whether the AI referrer list is fresh.

For your privacy policy. Adapt this to your own wording and legal context:

To understand which pages of our website people visit, we count page views with a first-party counter. When you open a page, a small script sends the address of that page (without any query string) to our own server, together with the name of the website that linked to it and its utm_source campaign tag, if any. Our server adds one to a daily count for that page, noting only whether the visit came from an AI assistant such as ChatGPT, and if so which one; the linking website and the campaign tag are then discarded. We do not set a cookie, do not store your IP address or browser details, and do not build any profile of you; only the daily total per page is kept. These totals — not any data about you — are shared with our AI-presence provider, Globetrotters, to report how our website is used alongside how AI assistants use it.

Behind a proxy or CDN

The client IP is what lets the backend confirm that a claimed ClaudeBot hit really came from Anthropic. Resolution uses Symfony's own framework.trusted_proxies — without it every hit reports your proxy's address and every row is recorded unverified. gt:status flags this.

Behind Cloudflare, also set reporting.trust_cloudflare_header: true to read CF-Connecting-IP. It is off by default and only honoured for requests arriving from a declared trusted proxy: the header is forgeable, and trusting it blindly would let anyone claim a vendor IP.

Full reporting options

Install profiles

profile mirrors the install profile shown in the Studio.

Profile What this site does
full_apex (default) This site is the presence. Artefacts served here, JSON-LD inlined, nothing pointing elsewhere.
subdomain_breadcrumb Both lanes, and what the product recommends. Everything full_apex does, plus a link back to the presence published at your Globetrotters host.

Why the second lane exists

If you also publish at ai.<your-domain> (or <slug>.globetrotters.ai), that host is a separate site to every crawler. It inherits none of your apex's index membership, crawl budget or authority, and nothing on the public web points at it — so it is reached only by something that already knows the hostname. subdomain_breadcrumb fixes that from the one place that already has the authority: your own homepage.

It injects discovery <link> relations into <head>, and nothing else:

rel="alternate" appears on homepage_path only — it points at a document describing the destination, so claiming it as an interior page's alternate would assert something untrue about that page. The three agent-discovery relations name where your site's surfaces live, which is equally true from every page, so they are emitted on every HTML page: an agent that arrives on a deep page is exactly the case that needs a pointer. rel="related" names the presence host itself, on every page too: once your install serves all the discovery files, it is the one relation that still points there.

Installing this bundle is transparent to your visitors. It never injects anything visible: it does not know your layout, and has no safe position to put an element into a design it does not own. Head markup only.

That has a real cost, worth stating plainly: a <link> is a discovery pointer, not a followed link, so on its own it does not pass the crawl authority that would let the subdomain inherit your apex's standing. A visible anchor is what does that — so the bundle hands you one to place yourself, inside your own layout:

Set breadcrumb.anchor_text to control its wording. It is your markup, in your template, where you can see and style it.

Each relation points at the canonical copy of its own file. Anything this install serves itself (the paths above, which since 0.7.0 include all four) is linked root-relative, so agents are sent to your domain — the copy carrying your index membership, not the mirror. A relation names the Globetrotters host only for a file this install does not serve, or has not cached yet (a bundle cached before 0.7.0 has no ai-catalog.json until its next successful refresh); the split follows the served set, so a file added there starts resolving locally on its own.

You never configure the host. It is derived from the cached ai.json on every refresh, so when a custom hostname activates (or is detached) the links follow it on the next ordinary refresh — no config change, no redeploy. A configured host would keep resolving after such a flip while pointing at the wrong place, which is the one failure you would never notice.

Nothing is injected when no host can be derived: a breadcrumb to nowhere is worse than none.

The locally served paths are identical on both profiles. All of them stay at your apex either way — the backend's split is an offload list, and none of them is on it. This profile changes the breadcrumb, not the footprint.

Twig alternatives to the automatic injection

Each injection is automatic on homepage_path. If you'd rather place markup explicitly, use these in your base template — the automatic injectors detect what you rendered and won't duplicate it:

gt_ai_presence_breadcrumb_link() is the only way the visible anchor ever reaches a page — there is no setting that makes the bundle place it for you.

The page-view script, when you have turned the counter on, is placed the same way; it renders '' otherwise, and reporting.page_views.auto_inject is the opt-in that places it for you (see Counting human page views):

Caveats

Development

The integration suite boots a real HttpKernel with a catch-all "antagonist" controller and a network-free fake fetcher, proving route pre-emption, robots decoration, raw-HTML JSON-LD, and stale-serve end to end. It also covers the reporting lane: capture through a live kernel, the console and kernel.terminate flush lanes, the buffer under forked concurrent writers, and the no-store headers surviving Symfony's own HttpCache.

Releasing

  1. Bump the version in its three places: GlobetrottersAiPresenceBundle::VERSION, the extra.branch-alias.dev-main constraint in composer.json, and CHANGELOG.md, where the [Unreleased] notes move under a new ## [x.y.z] - YYYY-MM-DD heading.
  2. Merge to main.
  3. On an up-to-date main, tag and push:

The Release workflow then checks that the tag, VERSION, the branch alias and the CHANGELOG.md section agree, runs the full CI matrix, and publishes a GitHub Release with that section as its notes. Packagist picks up the tag on its own.

Contributing and security

Issues are welcome; pull requests are by invitation, see CONTRIBUTING.md. Report a vulnerability privately as SECURITY.md describes, never in a public issue.

Related

License

Released under the MIT License. © 2026 Globetrotters.ai


All versions of symfony-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
psr/cache Version ^3.0
psr/log Version ^1.1|^2.0|^3.0
symfony/cache Version ^6.4|^7.0|^8.0
symfony/cache-contracts Version ^3.0
symfony/clock Version ^6.4|^7.0
symfony/config Version ^6.4|^7.0
symfony/console Version ^6.4|^7.0
symfony/dependency-injection Version ^6.4|^7.0
symfony/event-dispatcher Version ^6.4|^7.0
symfony/http-client Version ^6.4|^7.0
symfony/http-foundation Version ^6.4|^7.0
symfony/http-kernel Version ^6.4|^7.0
symfony/service-contracts Version ^3.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 globetrotters-ai/symfony-bundle contains the following files

Loading the files please wait ...