# MobileDetect PHP

## Home

- [Introduction](https://docs.mobiledetect.net/home/readme.md): Welcome to the guide on how to use Mobile Detect PHP library in your project.
- [Install](https://docs.mobiledetect.net/home/install.md): How to install and use the library
- [How to use (composer)](https://docs.mobiledetect.net/home/usage-composer.md): Learn how to use Mobile Detect library via composer
- [How to use (standalone)](https://docs.mobiledetect.net/home/usage-standalone.md): Learn how to use Mobile Detect library as a standalone PHP class, without composer.
- [The constructor](https://docs.mobiledetect.net/home/the-constructor.md)
- [Example](https://docs.mobiledetect.net/home/example.md): A simple example of how to use MobileDetect library.
- [Other versions](https://docs.mobiledetect.net/home/2.x-and-3.x.md): Learn how to install the versions for older PHP versions
- [Demo](https://docs.mobiledetect.net/home/demo.md)
- [Performance](https://docs.mobiledetect.net/home/performance.md)
- [Contribute](https://docs.mobiledetect.net/home/contribute.md)
- [Developing code](https://docs.mobiledetect.net/home/contribute-by-developing-code.md): Learn how to contribute with code patches.
- [Project structure](https://docs.mobiledetect.net/home/project-structure.md)
- [Extending / Porting](https://docs.mobiledetect.net/home/extending-porting.md): Learn how to create a port of Mobile Detect in a different language or library.
- [Add new module, plugin or port](https://docs.mobiledetect.net/home/add-new-module-plugin-or-port.md)
- [Plugins, Modules and Ports](https://docs.mobiledetect.net/home/mobile-detect-ports.md): Various libraries, modules, plugins and ports submitted by users.
- [Credits](https://docs.mobiledetect.net/home/credits.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://docs.mobiledetect.net/home/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
