This commit is contained in:
13
docs/snippets/php/config/config_discover.md
Normal file
13
docs/snippets/php/config/config_discover.md
Normal file
@@ -0,0 +1,13 @@
|
||||
```php title="PHP"
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Kreuzberg\Kreuzberg;
|
||||
|
||||
// Discover configuration from file system
|
||||
$config = ExtractionConfig::discover() ?? new ExtractionConfig();
|
||||
$result = Kreuzberg::extractFileSync('document.pdf', null, $config);
|
||||
|
||||
echo $result->getContent();
|
||||
?>
|
||||
```
|
||||
Reference in New Issue
Block a user