{"data":{"slug":"llphant-llphant","name":"LLPhant","tagline":"A comprehensive PHP Generative AI Framework using OpenAI GPT 4","github_url":"https://github.com/LLPhant/LLPhant","owner":"LLPhant","repo":"LLPhant","owner_avatar_url":"https://avatars.githubusercontent.com/u/193282612?v=4","primary_language":"PHP","stars":1708,"forks":170,"topics":["agent","autophp","embeddings","genai","generative-ai","gpt4","langchain","laravel","llamaindex","openai","php","symfony","vector-database"],"archived":false,"github_pushed_at":"2026-07-26T08:28:11+00:00","maintenance_label":"Active","stars_delta_30d":7,"url":"https://www.graphcanon.com/tools/llphant-llphant","markdown_url":"https://www.graphcanon.com/tools/llphant-llphant.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/llphant-llphant","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=llphant-llphant","description":"LLPhant - A comprehensive PHP Generative AI Framework using OpenAI GPT 4. Inspired by Langchain","homepage_url":null,"license":"MIT","open_issues":35,"watchers":37,"ai_summary":"LLPhant is inspired by Langchain and aims to provide extensive generative AI functionalities in PHP.","readme_excerpt":"# LLPhant - The PHP library for Gen AI and Vector Databases\n\n<div align=\"center\">\n    <img src=\"docs/assets/llphant-logo.png\" alt=\"LLPhant\" style=\"border-radius: 50%; padding-bottom: 20px\"/>\n</div>\n\nWe designed this framework to be as simple as possible, while still providing you with the tools you need to build powerful apps.\nIt is compatible with Symfony and Laravel.\n\nWe are working to expand the support of different LLMs. Right now, we are supporting [OpenAI](https://openai.com/blog/openai-api), [Anthropic](https://www.anthropic.com/), [Mistral](https://mistral.ai/), [Ollama](https://ollama.ai/), [LM Studio](https://lmstudio.ai/), [Atlas Cloud](https://www.atlascloud.ai/docs) and services compatible with the OpenAI API such as [LocalAI](https://localai.io/).\nOllama that can be used to run LLM locally such as [Llama 2](https://llama.meta.com/).\n\n## Atlas Cloud\n\nLLPhant's `AtlasCloudConfig` targets the OpenAI-compatible Atlas Cloud endpoint\nat `https://api.atlascloud.ai/v1` and now defaults to the validated chat model\n`qwen/qwen3.5-flash`.\n\nThe configuration also accepts any Atlas model slug exposed by your account via\nthe optional `ATLASCLOUD_MODEL` environment variable. Examples from the current\npublic Text model list include:\n\n- `qwen/qwen3.5-flash`\n- `qwen/qwen3.6-plus`\n- `deepseek-ai/deepseek-v4-flash`\n- `deepseek-ai/deepseek-v4-pro`\n- `google/gemini-3.5-flash`\n- `zai-org/glm-4.7`\n\nWe want to thank few amazing projects that we use here or inspired us:\n\n-   the learnings from using [LangChain](https://www.langchain.com/) and [LLamaIndex](https://www.llamaindex.ai/)\n-   the excellent work from the [OpenAI PHP SDK](https://github.com/openai-php/client).\n\nWe can find great external resource on LLPhant (ping us to add yours):\n\n-   🇫🇷 [Construire un RAG en PHP avec la doc de Symfony, LLPhant et OpenAI : Tutoriel Complet](https://www.youtube.com/watch?v=zFJgRd05Noo)\n-   🇫🇷 [Retour d'expérience sur la création d'un agent autonome](https://www.youtube.com/watch?v=ZnYUxTtS6IU)\n-   🇬🇧 [Exploring AI riding an LLPhant](https://www.slideshare.net/slideshow/exploring-ai-riding-an-llphant-an-open-source-library-to-use-llms-and-vector-dbs-in-php/272059145)\n-   🇬🇧 [Evaluating LLM and AI agents Outputs with String Comparison, Criteria & Trajectory Approaches](https://medium.com/towards-artificial-intelligence/evaluating-large-language-model-outputs-with-string-comparison-criteria-trajectory-approaches-c42d43c0cdc3)\n\n# Get Started\n\n> **Note**  \n> **Requires** [PHP 8.1+](https://php.net/releases/)\n\nFirst, install LLPhant via the [Composer](https://getcomposer.org/) package manager:\n\n```bash\ncomposer require theodo-group/llphant\n```\n\nIn case you have not installed the GD extension, and you do not want to add it to your PHP setup,\nyou can use the `--ignore-platform-req=ext-gd` option\n\n```bash\ncomposer require theodo-group/llphant --ignore-platform-req=ext-gd\n```\n\nIf you want to try the latest features of this library, you can use:\n\n```bash\ncomposer require theodo-group/llphant:dev-main\n```\n\nYou may also want to check the requirements for [OpenAI PHP SDK](https://github.com/openai-php/client) as it is the main client.\n\n## Documentation\n\nFind documentation in [the docs directory](docs) or \nonline at [https://llphant.readthedocs.org](https://llphant.readthedocs.org)\n\n## Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Contributors\n\nThanks to our contributors:\n\n<a href=\"https://github.com/theodo-group/llphant/graphs/contributors\">\n<img src=\"https://contrib.rocks/image?repo=theodo-group/llphant\" />\n</a>\n\n## Sponsor\n\nLLPhant is sponsored by :\n\n-   [AGO](https://useago.com). Generative AI customer support solutions.\n-   [Theodo](https://www.theodo.fr/) a leading digital agency building web application with Generative AI.\n\n<div align=\"center\">\n  <a href=\"https://www.theodo.fr/\" />\n    <img alt=\"Theodo logo\" src=\"https://cdn2.hubspot.net/hub/2383597/hubfs/Website/Logos/Logo_Theodo_cropped.svg\" width=\"200\"/>\n  </a>\n</div>","github_created_at":"2023-07-31T09:54:43+00:00","created_at":"2026-07-07T17:44:24.765149+00:00","updated_at":"2026-08-21T12:01:19.504436+00:00","categories":[{"slug":"data-retrieval","name":"Data & Retrieval","url":"https://www.graphcanon.com/categories/data-retrieval","markdown_url":"https://www.graphcanon.com/categories/data-retrieval.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/data-retrieval"},{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"agent","name":"agent"},{"slug":"genai","name":"genai"},{"slug":"generative-ai","name":"generative-ai"},{"slug":"gpt4","name":"gpt4"},{"slug":"langchain","name":"langchain"},{"slug":"laravel","name":"laravel"},{"slug":"llamaindex","name":"llamaindex"},{"slug":"openai","name":"openai"}],"trust":{"provenance":{"is_fork":false,"github_id":672847735,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-21T12:01:18.742Z","maintenance":{"label":"Active","score":82,"methodology":"github_public_v1","releases_90d":2,"days_since_push":26,"last_release_at":"2026-07-26T08:28:12Z","stars_delta_30d":7,"open_issues_delta_30d":0},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T11:25:43.595Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-08-21T12:01:19.229Z"},"languages":{"value":["php"],"source":"github.language","observed_at":"2026-08-21T12:01:19.229Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-08-21T12:01:19.229Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["If your project is built with PHP and requires advanced integration of generative AI features, especially using GPT-4 models.","Suitable for developers looking to implement specific PHP-based solutions in the Laravel or Symfony frameworks, as LLPhant has topics aligned with these ecosystems."],"when_not_to_use":["If your project is not primarily based on PHP and would benefit more from direct integration with langchain in a supported language.","Avoid if you require a framework that supports real-time embeddings without an intermediary AI, as LLPhant focuses heavily on OpenAI GPT-4."],"source":"enrich:decision_facts","observed_at":"2026-07-14T19:19:55.743Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"LLPhant emerges as a specialized PHP framework for integrating Generative AI functionalities by leveraging OpenAI's GPT-4."}]}}