entoknakal / file-picker
Native document/file picker plugin for NativePHP Mobile v4
Package info
github.com/entoknakal/file-picker
Type:nativephp-plugin
pkg:composer/entoknakal/file-picker
v1.0.1
2026-09-18 09:14 UTC
Requires
- php: ^8.3
- nativephp/mobile: ^4.3
Requires (Dev)
- pestphp/pest: ^3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
FilePicker plugin for Android only
Installation
- Install file-picker
composer require entoknakal/file-picker
- Ensure you have published the NativeServiceProvider:
php artisan vendor:publish --tag=nativephp-plugins-provider
- Register the plugin
php artisan native:plugin:register entoknakal/file-picker
- Check that NativePHP sees the plugin
php artisan native:plugin:list
Usage
use entoknakal\FilePicker\Facades\FilePicker; // Execute functionality $files = FilePicker::open([ 'types' => ['image/*', 'application/pdf'], ]); if (!empty($files)) { $path =$files[0]['path']; $name =$files[0]['name']; }
License
MIT