enflow / component-brick
The enflow/component-brick package provides the logic to connect to the iOS and Android side of the Brick framework.
Installs: 28 220
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 1
Open Issues: 0
Language:Blade
Requires
- php: ^8.2
- illuminate/database: ^10.0|^11.0
- illuminate/routing: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
This package is auto-updated.
Last update: 2024-11-15 14:12:38 UTC
README
The enflow/component-brick
package provides the logic to connect to the iOS and Android side of the Brick framework. Brick is meant to be used as the server-side variant of the Brick framework. See "Whats Brick"
What's Brick
Brick is Enflow's framework to create hybrid iOS and Android apps. These wrappers communicate with the server side trough a JavaScript bridge. This package writes a tag to your application that those native wrappers communicate with. The primary function of this package is to support push notifications by fetching the device ID from the device and write it to a table.
Installation
You can install the package via composer:
composer require enflow/component-brick
Migrations
This package includes a migration that needs to be published. This table (brick_devices
) includes the mapping between the user and the hardware UUID of the iOS or Android device required for push notifications. New devices will be automatically assigned to the user. You can publish this migration by running:
php artisan vendor:publish --provider="Enflow\Component\Brick\BrickServiceProvider"
Usage
This package adds the BrickManager
class to the container and injects a $brickManager
variable to all views. This variable can be used to render the required tag automatically. We recommend adding this to the end of the master template, just before the </body>
:
{!! $brickManager->tags() !!}
We recommend viewing through the files in this package to understand its usage and logic.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email michel@enflow.nl instead of using the issue tracker.
Credits
About Enflow
Enflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info on our website.