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

Services Laravel Package

dataplay/services

Dataplay Services provides lightweight tools for Laravel apps: generate mock data from a schema, hash and compare payloads for data sync/integrity checks, and log executed SQL queries to a file for debugging and analysis with zero dependencies.

View on GitHub
Deep Wiki
Context7

Generator, Sync Engine and QueryLog utilities

Frequently asked questions about Services
How do I install Dataplay Services in a Laravel project?
Run `composer require dataplay/services` in your project directory. The package is dependency-free and integrates seamlessly with Laravel’s autoloader. No additional configuration is required unless you need specific features like the Query Log, which requires enabling via a service provider.
Which Laravel versions does Dataplay Services support?
The package is designed for modern Laravel versions (8.x and 9.x) due to its lightweight nature and lack of Laravel-specific dependencies. However, it may work with older versions if PHP 8.0+ is used. Always check the package’s `composer.json` for explicit version constraints.
Can I use the Data Generator to create realistic test data for Eloquent models?
Yes, the Data Generator supports schema-driven mock data creation. Define your schema (e.g., field types, constraints) and generate structured data for Eloquent models, seeders, or unit tests. It’s ideal for avoiding hardcoded test data and ensuring consistency across environments.
How does the Data Sync Engine detect changes in payloads?
The Data Sync Engine generates a hash of your payload data. By comparing hashes before and after operations (e.g., API calls, database updates), you can detect unintended changes. This is useful for validating data integrity in sync workflows or batch processing.
Will the Query Log slow down my Laravel application in production?
The Query Log is designed to be minimal and non-blocking, writing SQL queries to a file asynchronously. While it adds minor overhead, it’s optimized for debugging and shouldn’t impact performance significantly in production. Disable it in live environments if not needed.
Are there alternatives to Dataplay Services for Laravel data management?
For mock data, consider Faker or Laravel’s built-in factories. For data validation, Laravel’s built-in validation or packages like Spatie’s Laravel Data are robust alternatives. For query logging, tools like Laravel Debugbar or commercial solutions like Blackfire offer deeper insights but with more dependencies.
How do I configure the Query Log to write to a custom file path?
The Query Log can be configured via its service provider or directly in your code. Set the log file path using the `setLogPath()` method or via environment variables if the package supports them. Defaults to a `queries.log` file in storage or the project root.
Can Dataplay Services handle large datasets or batch processing?
The package is lightweight and not optimized for large-scale batch processing out of the box. For heavy workloads, consider offloading tasks to Laravel Queues or using dedicated ETL tools like Laravel Excel. The Data Sync Engine and Generator work best for smaller, structured datasets.
Is Dataplay Services actively maintained? What’s the rollback plan if issues arise?
As of now, the package has minimal community adoption (0 stars/dependents), so maintenance status is unclear. If issues arise, check the GitHub repository for updates or fork the package to apply fixes. Always test thoroughly in staging before production use, and have a backup plan like reverting to manual data generation or logging.
How can I integrate Dataplay Services with Laravel’s service container?
Bind the package’s services to Laravel’s container by registering a service provider. For example, bind the Data Generator or Query Log as singleton services in `config/app.php`. This allows dependency injection and easier testing. Documentation for this may require reviewing the package’s source or extending it via facades.
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.
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon