Weave Code
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
Virtual Identity

Virtual Identity Laravel Package

beecms/virtual-identity

Laravel package for managing “virtual identities” in your app—create, store, and switch between user personas/aliases for testing, demos, or multi-profile workflows. Provides models and helpers to associate identities with real users and control active identity context.

View on GitHub
Deep Wiki
Context7

Virual identity bundle for Youtube, Facebook, Twitter, Instagram - Social Aggregator Bundle

Frequently asked questions about Virtual Identity
How do I install the beecms/virtual-identity package in Laravel?
Run `composer require beecms/virtual-identity` in your project directory. The package includes a Laravel service provider, so it will auto-register if you add it to your `config/app.php` under the `providers` array. Ensure your Laravel version is 8.x or higher for compatibility.
Does this package support Laravel 9 or 10?
The package is designed for Laravel 8+ and should work with Laravel 9 and 10, but verify the latest release notes on GitHub for confirmed compatibility. If issues arise, check for Laravel-specific updates in the package’s documentation or open an issue on the repo.
Can I use this for social login (OAuth) or just profile aggregation?
This package supports OAuth 2.0 for social logins (e.g., connecting Facebook or Twitter accounts) and aggregates profile data like posts or media. It’s ideal for both authentication flows and read/write operations, depending on your use case and API permissions.
How do I handle rate limits from social APIs like Twitter or Instagram?
The package abstracts API calls but doesn’t enforce rate-limiting logic by default. Mitigate risks by implementing exponential backoff in your application layer, using Laravel queues to delay requests, or caching responses with Redis to reduce redundant calls.
Where should I store OAuth tokens securely?
Store tokens in Laravel’s encrypted database fields (using `encrypt` or `encryptString` in migrations) or a dedicated vault like Hashicorp Vault. Avoid plaintext storage, and ensure your `APP_KEY` is set in `.env` for encryption to work.
How do I switch between virtual identities in my app?
The package provides models and helpers to associate identities with users. Use the `VirtualIdentity` facade or injected services to fetch, activate, or deactivate profiles. Middleware can enforce active identity context for specific routes or controllers.
What if a social API (e.g., Twitter) changes its endpoints or deprecates features?
The package may require updates to handle API changes. Monitor the GitHub repo for patches or implement feature flags in your codebase to toggle between API versions. Test thoroughly with mock APIs (e.g., VCR) to catch breaking changes early.
Can I extend this bundle to support LinkedIn or TikTok?
The package is modular and designed for extensibility. You can create custom service providers or models for new platforms by following the existing patterns (e.g., extending `SocialAccount`). Contribute back to the repo if your changes benefit others.
How do I test this package without hitting real social API limits?
Use mocking libraries like Mockery or VCR to record and replay API responses in your tests. The package’s Eloquent models can also be tested in isolation with Laravel’s database testing tools (e.g., `refreshDatabase()`). Avoid live API calls in CI/CD pipelines.
What’s the best way to monitor API failures or token expirations?
Leverage Laravel’s logging and monitoring tools like Laravel Horizon or third-party services (e.g., Sentry). Implement custom events (e.g., `SocialTokenExpired`) to trigger alerts or retries. Track metrics like API latency or HTTP status codes to proactively detect issues.
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope