PHPackages                             batnieluyo/extractor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. batnieluyo/extractor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

batnieluyo/extractor
====================

AI-Powered Data Extraction for your Laravel application.

1.0.0(1y ago)0442MITHTMLPHP ^8.2

Since Jul 23Pushed 1y agoCompare

[ Source](https://github.com/batnieluyo/extractor)[ Packagist](https://packagist.org/packages/batnieluyo/extractor)[ Docs](https://github.com/batnieluyo/extractor)[ RSS](/packages/batnieluyo-extractor/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (17)Versions (4)Used By (0)

[![](art/header.png)](art/header.png)

Extractor: AI-Powered Data Extraction Library for Laravel.
==========================================================

[](#extractor-ai-powered-data-extraction-library-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d606f4dafe503829204a67db9126c5af9d4f05caa8592e4f8ef27fc6a519f2a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261746e69656c75796f2f657874726163746f722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d606f4dafe503829204a67db9126c5af9d4f05caa8592e4f8ef27fc6a519f2a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261746e69656c75796f2f657874726163746f722e7376673f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/fdc2289f4aa2be24ac1312e57333a3a62484186084dc1bd9a9da6eff12655ec5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261746e69656c75796f2f657874726163746f722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fdc2289f4aa2be24ac1312e57333a3a62484186084dc1bd9a9da6eff12655ec5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261746e69656c75796f2f657874726163746f722e7376673f7374796c653d666c61742d737175617265)

Effortlessly extract structured data from various sources, including images, PDFs, and emails, using OpenAI within your Laravel application.

Features
--------

[](#features)

- A convenient wrapper around OpenAI Chat and Completion endpoints.
- Supports multiple input formats such as Plain Text, PDF, Rtf, Images, Word documents and Web content.
- Includes a flexible Field Extractor that can extract any arbitrary data without writing custom logic.
- Can return a regular array or a [Spatie/data](https://spatie.be/docs/laravel-data/v3/introduction) object.
- Integrates with [Textract](https://aws.amazon.com/textract/) for OCR functionality.
- Uses [JSON Mode](https://platform.openai.com/docs/guides/text-generation/json-mode) from the latest GPT-3.5 and GPT-4 models.

Example
-------

[](#example)

[![](art/example.png)](art/example.png)

Example code```
