{"id":18772877,"url":"https://github.com/protonemedia/laravel-browser-kit-macro","last_synced_at":"2025-07-12T16:06:51.198Z","repository":{"id":44618319,"uuid":"119679788","full_name":"protonemedia/laravel-browser-kit-macro","owner":"protonemedia","description":"A macro to use the Laravel 5.3 testing layer inside your Laravel \u003e5.3 tests","archived":false,"fork":false,"pushed_at":"2025-02-23T21:23:12.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-20T09:04:46.831Z","etag":null,"topics":["laravel","macros","php","testing"],"latest_commit_sha":null,"homepage":"https://pascalbaljetmedia.com/en/blog/mixing-the-laravel-54-http-testing-layer-with-browserkit-testing","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/protonemedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["pascalbaljet"]}},"created_at":"2018-01-31T11:42:54.000Z","updated_at":"2025-02-23T21:22:59.000Z","dependencies_parsed_at":"2024-03-14T14:01:38.720Z","dependency_job_id":"af579596-6d19-44cc-b259-bc2765caac23","html_url":"https://github.com/protonemedia/laravel-browser-kit-macro","commit_stats":{"total_commits":30,"total_committers":4,"mean_commits":7.5,"dds":"0.30000000000000004","last_synced_commit":"97ec7e524bd1bdc43cad9742c0ad7ac2d2dda4e6"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/protonemedia/laravel-browser-kit-macro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protonemedia%2Flaravel-browser-kit-macro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protonemedia%2Flaravel-browser-kit-macro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protonemedia%2Flaravel-browser-kit-macro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protonemedia%2Flaravel-browser-kit-macro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protonemedia","download_url":"https://codeload.github.com/protonemedia/laravel-browser-kit-macro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protonemedia%2Flaravel-browser-kit-macro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265017141,"owners_count":23698429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","macros","php","testing"],"created_at":"2024-11-07T19:31:30.342Z","updated_at":"2025-07-12T16:06:51.144Z","avatar_url":"https://github.com/protonemedia.png","language":"PHP","funding_links":["https://github.com/sponsors/pascalbaljet"],"categories":[],"sub_categories":[],"readme":"# Laravel Browser Kit Macro\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/pbmedia/laravel-browser-kit-macro.svg?style=flat-square)](https://packagist.org/packages/pbmedia/laravel-browser-kit-macro)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Quality Score](https://img.shields.io/scrutinizer/g/protonemedia/laravel-browser-kit-macro.svg?style=flat-square)](https://scrutinizer-ci.com/g/protonemedia/laravel-browser-kit-macro)\n[![Total Downloads](https://img.shields.io/packagist/dt/pbmedia/laravel-browser-kit-macro.svg?style=flat-square)](https://packagist.org/packages/pbmedia/laravel-browser-kit-macro)\n\nThis package allows you to seamlessly use the [Browser Kit features](https://github.com/laravel/browser-kit-testing) in more modern Laravel installations.\n\n## Requirements\n* Laravel 10\n* PHP 8.2 or higher\n\n## Sponsor Us\n\n[\u003cimg src=\"https://inertiaui.com/visit-card.jpg\" /\u003e](https://inertiaui.com/inertia-table?utm_source=github\u0026utm_campaign=laravel-browser-kit-macro)\n\n❤️ We proudly support the community by developing Laravel packages and giving them away for free. If this package saves you time or if you're relying on it professionally, please consider [sponsoring the maintenance and development](https://github.com/sponsors/pascalbaljet) and check out our latest premium package: [Inertia Table](https://inertiaui.com/inertia-table?utm_source=github\u0026utm_campaign=laravel-browser-kit-macro). Keeping track of issues and pull requests takes time, but we're happy to help!\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require pbmedia/laravel-browser-kit-macro --dev\n```\n\nIf you're not using Package Discovery, add the Service Provider to your `config/app.php` file:\n\n```php\nProtoneMedia\\LaravelBrowserKitMacro\\BrowserKitMacroServiceProvider::class,\n```\n\n## Upgrading to v5\n\n* The namespace has changed to `ProtoneMedia\\LaravelBrowserKitMacro`. Please update your code accordingly.\n\n## Usage\n\nThis package adds a `browserKit` method to the `TestResponse` class. It accepts a Closure which receives the [Browser Kit TestCase](https://github.com/laravel/browser-kit-testing/blob/master/src/TestCase.php) as its first argument.\n\n```php\n/** @test */\npublic function it_presents_a_registration_form()\n{\n    $this-\u003eget('register')\n        -\u003eassertStatus(200)\n        -\u003ebrowserKit(function ($test) {\n            $test-\u003eseeElement('input', ['name' =\u003e 'email']);\n        });\n}\n```\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Other Laravel packages\n\n* [`Inertia Table`](https://inertiaui.com/inertia-table?utm_source=github\u0026utm_campaign=laravel-browser-kit-macro): The Ultimate Table for Inertia.js with built-in Query Builder.\n* [`Laravel Blade On Demand`](https://github.com/protonemedia/laravel-blade-on-demand): Laravel package to compile Blade templates in memory.\n* [`Laravel Cross Eloquent Search`](https://github.com/protonemedia/laravel-cross-eloquent-search): Laravel package to search through multiple Eloquent models.\n* [`Laravel Eloquent Scope as Select`](https://github.com/protonemedia/laravel-eloquent-scope-as-select): Stop duplicating your Eloquent query scopes and constraints in PHP. This package lets you re-use your query scopes and constraints by adding them as a subquery.\n* [`Laravel FFMpeg`](https://github.com/protonemedia/laravel-ffmpeg): This package provides an integration with FFmpeg for Laravel. The storage of the files is handled by Laravel's Filesystem.\n* [`Laravel MinIO Testing Tools`](https://github.com/protonemedia/laravel-minio-testing-tools): Run your tests against a MinIO S3 server.\n* [`Laravel Mixins`](https://github.com/protonemedia/laravel-mixins): A collection of Laravel goodies.\n* [`Laravel Paddle`](https://github.com/protonemedia/laravel-paddle): Paddle.com API integration for Laravel with support for webhooks/events.\n* [`Laravel Task Runner`](https://github.com/protonemedia/laravel-task-runner): Write Shell scripts like Blade Components and run them locally or on a remote server.\n* [`Laravel Verify New Email`](https://github.com/protonemedia/laravel-verify-new-email): This package adds support for verifying new email addresses: when a user updates its email address, it won't replace the old one until the new one is verified.\n* [`Laravel XSS Protection`](https://github.com/protonemedia/laravel-xss-protection): Laravel Middleware to protect your app against Cross-site scripting (XSS). It sanitizes request input, and it can sanatize Blade echo statements.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email code@protone.media instead of using the issue tracker.\n\n## Credits\n\n- [Pascal Baljet](https://github.com/pascalbaljet)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotonemedia%2Flaravel-browser-kit-macro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotonemedia%2Flaravel-browser-kit-macro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotonemedia%2Flaravel-browser-kit-macro/lists"}