NativePHP APIs
Integrates native device features like cameras, biometrics, and geolocation into PHP applications using specialized facades and implementation patterns.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Implements a Fluent Builder pattern for configuring and executing asynchronous device operations.
- Enables advanced low-level access via the nativephp_call bridge function.
- Facilitates secure synchronous storage using native keychain and keystore systems.
- Provides PHP Facades for native hardware access including Camera, Biometrics, and Geolocation.
- Offers guidance on handling mobile-specific events and permission configurations.
Use cases
- Adding hardware-level features like barcode scanning or GPS tracking to a PHP mobile app.
- Implementing secure biometric authentication and keychain-backed session management.
- Handling complex media capture and file manipulation tasks within a NativePHP environment.
FAQ
Is there support for secure data storage?
Yes. The skill provides detailed guidance on the SecureStorage API, which offers synchronous access to the native iOS Keychain and Android Keystore, allowing you to store sensitive data like API tokens directly in Blade templates.
Which native features can I implement using this skill?
You can implement a comprehensive suite of native capabilities including Camera (photos/video), QR/Barcode Scanner, Biometrics (FaceID/TouchID), Geolocation, Push Notifications, Microphone access, Haptics, and SecureStorage.
What does the NativePHP APIs skill do?
This skill equips Claude with the specialized knowledge required to integrate native mobile device features—such as cameras, GPS, and biometrics—directly into PHP applications using the NativePHP framework's mobile ecosystem.
What if I need to access a low-level function not in a standard facade?
The skill includes documentation for 'The God Method' (nativephp_call), a bridge function that allows for advanced, direct communication with the underlying native platform for specialized use cases.
How does this skill handle complex asynchronous device operations?
The skill utilizes a Fluent Builder pattern (Pending* objects), enabling you to configure requests with unique IDs, custom event classes, and session persistence before execution, making complex hardware interactions predictable.