定制 geooptimizer/php-geo-optimizer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

geooptimizer/php-geo-optimizer

Composer 安装命令:

composer require geooptimizer/php-geo-optimizer

包简介

A PHP library for Generative Engine Optimization (GEO) — llms.txt, Schema.org structured data, and AI search readiness tooling.

README 文档

README

CI Packagist Version License: MIT PHP

Generative Engine Optimization (GEO) for PHP — generate llms.txt files, Schema.org structured data, and citation-ready markup so AI search engines (ChatGPT, Claude, Perplexity, Google AI Overviews) can find and cite your site accurately.

What is GEO?

Generative Engine Optimization is the practice of structuring web content so AI-powered search systems represent your business correctly. GeoOptimizer handles formatting, industry templates, structured data, and readiness scoring — without requiring deep AI expertise.

Features

  • llms.txt generation — AI-oriented site summaries following the emerging llms.txt convention
  • Structured data — Schema.org markup for local business, services, FAQs, and more
  • Content analysis — GEO readiness scoring with actionable recommendations
  • Industry templates — Pre-built baselines for 12+ industries
  • Citation tracking — Monitor mentions across major AI platforms (optional API keys)
  • WordPress plugin — Admin UI, automatic llms.txt endpoint, structured data in wp_head
  • Framework integrations — Laravel service provider, Symfony bundle
  • REST API — Automation endpoints with optional API key auth and rate limiting
  • Premium WordPress tier — Dashboard, bulk analysis, and competitor comparison with license key

Requirements

  • PHP 7.4+ (PHP 8.2+ recommended for development tooling)
  • Composer

Installation

PHP library (Composer)

composer require geooptimizer/php-geo-optimizer

WordPress plugin

Download the release zip (includes bundled dependencies):

https://github.com/tedrubin80/geolibrary/releases/latest/download/geooptimizer-wordpress-plugin.zip

In wp-admin: Plugins → Add New → Upload Plugin, upload the zip, activate, then open Settings → GEO Optimizer. The plugin is not on WordPress.org yet.

From source

For local development from this repository:

git clone https://github.com/tedrubin80/geolibrary.git
cd geolibrary
composer install

Quick start

<?php
require 'vendor/autoload.php';

use GEOOptimizer\GEOOptimizer;

$geo = new GEOOptimizer();

$results = $geo->optimize([
    'business_name' => 'Acme Coffee',
    'description'   => 'Specialty coffee roaster and café.',
    'industry'      => 'restaurant',
    'location'      => 'San Francisco, CA',
    'services'      => ['Espresso', 'Pour Over', 'Retail Beans'],
]);

file_put_contents('public/llms.txt', $results['llms_txt']);

Project layout

src/                          PHP library (PSR-4: GEOOptimizer\)
wordpress-plugin/geooptimizer/ WordPress plugin distribution
public/                       Static site (geooptimizer.dev)
docs/                         Usage and development guides
tools/build.php               Build library / plugin zip artifacts

WordPress plugin

Same download as above:

https://github.com/tedrubin80/geolibrary/releases/latest/download/geooptimizer-wordpress-plugin.zip

For local development from the repo:

cd wordpress-plugin/geooptimizer
composer install

Build a distributable zip:

php tools/build.php --plugin
# → dist/geooptimizer-wordpress-plugin.zip

Premium features unlock with a license key under Settings → GEO Optimizer (demo key: GEO-DEMO-9444).

Dashboard and API

Serve the citation dashboard from public/dashboard/ and run the REST API with:

php bin/geo-api
# or: GEO_API_KEY=secret php bin/geo-api

See integrations.md for REST endpoints and framework setup.

Development

composer test          # PHPUnit
composer phpstan       # Static analysis
composer audit         # Dependency security audit
php tools/build.php    # Package artifacts into dist/

See docs/development.md for build, CI, and security notes.

Documentation

License

This project is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固