doctrine/phpcr-bundle, dantleech/phpcr-odm). The package assumes PHP 5.6+ and Doctrine PHPCR ODM ~1.2, which may conflict with modern Laravel (PHP 8.x) or newer PHPCR versions.LIKE queries with a declarative glob syntax (e.g., /cmf/articles/*), reducing boilerplate for hierarchical traversal.doctrine/phpcr-bundle + dantleech/phpcr-odm).Storage::glob()) or SQL queries, but this risks performance penalties and inconsistent behavior.Illuminate\Support\Facades\Storage::glob() (non-recursive) or league/flysystem-glob for recursive patterns.LIKE or full-text search (e.g., WHERE path LIKE '/path/%').scout or laravel-elasticsearch.jackalope/jackalope-fs) may have unpatched CVEs.find() with path constraints).doctrine/phpcr-bundle?| Component | Fit | Alternatives |
|---|---|---|
| PHPCR/ODM | Direct Fit: Package is designed for PHPCR. | None (if PHPCR is required). |
| Laravel Filesystem | Poor Fit: No native recursive glob support. | league/flysystem-glob, custom recursion with Storage::allFiles(). |
| SQL Databases | Indirect Fit: Glob patterns require translation to LIKE or custom queries. |
Laravel query builder, spatie/laravel-query-builder. |
| Elasticsearch | No Fit: Package doesn’t support Elasticsearch. | Custom mapping of globs to Elasticsearch queries. |
| CMS Integrations | Good Fit: e.g., eZ Platform, Sulu (if PHPCR-backed). | Native CMS APIs (e.g., eZ’s ContentService). |
composer require doctrine/phpcr-bundle dantleech/phpcr-odm dantleech/glob-finder
doctrine/phpcr-bundle in config/packages/doctrine_phpcr.yaml.league/flysystem-glob for recursive globs.class LaravelGlobFinder {
public function find(string $pattern): array {
return collect(Storage::disk('local')->allFiles())->filter(
fn ($path) => fnmatch($pattern, $path)
)->values()->all();
}
}
class GlobFinderFacade {
public function find(string $pattern): array {
if (app()->bound('phpcr.odm.document_manager')) {
return (new PhpcrOdmTraversalFinder(app('phpcr.odm.document_manager')))->find($pattern);
}
// Fallback to filesystem/SQL
return $this->fallbackFind($pattern);
}
}
Illuminate\Support\Facades\Cache) for frequent globs.doctrine/phpcr-bundle:^1.0 (for PHPCR 2.x).dantleech/phpcr-odm:^1.2.phpcr vs. doctrine/phpcr).nikic/php-parser to rewrite code).jackalope/jackalope-fs (dev dependency) may conflict with other Jackalope implementations.composer why-not dantleech/glob-finder for conflicts.find(), SQL LIKE).How can I help you explore Laravel packages today?