Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

State Bridge Bundle Laravel Package

devtrw/state-bridge-bundle

View on GitHub
Deep Wiki
Context7

DevtrwStateBridgeBundle

Build Status Code Quality Code Coverage SensioLabsInsight

This bundle provides a basic framework for dynamically creating ui-router states from configuration in a symfony bundle. The main drive behind this is to allow for selective activation of parts of an AngularJS frontend based on a users roles within a symfony context.

Installation

Install Bundle

TODO

Register the "jsonp" Request Format

How to register a new Request Format and Mime Type

Usage

NOTE: Theses Docs are incomplete. I'll make an effort to fill them out once the API has solidified

1. Define your states under the devtrw_state_bridge.states configuration key.

See the configuration section below.

2. Export the devtrw_state_bridge_get_entity_state and devtrw_state_bridge_get_state routes to your angular application.

The FOSJsRoutingBundle can handle dumping the routes along with the symfony router implemented in javascript. Simply wrap it with an angular module and you'll have easy access to any exported routes from within your angular app.

3. Create an abstract state in angular that loads in the needed states

You can get a general idea of how to do this by skimming over this blog post by Alex Feinberg.

Configuration

TODO

TODO

[ ] Wrap/Extend the FOSJsRoutingBundle to provide a more seamless integration with angular [ ] Finish initial documentation

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums