{"id":15014518,"url":"https://github.com/unglud/dusker","last_synced_at":"2025-10-11T07:06:36.956Z","repository":{"id":57075369,"uuid":"109435626","full_name":"unglud/dusker","owner":"unglud","description":"Stand alone Laravel Dusk test suit, which do not require Laravel framework itself","archived":false,"fork":false,"pushed_at":"2019-05-16T15:02:05.000Z","size":42,"stargazers_count":33,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T08:08:23.311Z","etag":null,"topics":["chromedriver","dusk","integration-testing","laravel","phpunit","selenium"],"latest_commit_sha":null,"homepage":null,"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/unglud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-03T19:35:16.000Z","updated_at":"2024-12-18T15:22:35.000Z","dependencies_parsed_at":"2022-08-24T14:55:42.588Z","dependency_job_id":null,"html_url":"https://github.com/unglud/dusker","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unglud%2Fdusker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unglud%2Fdusker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unglud%2Fdusker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unglud%2Fdusker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unglud","download_url":"https://codeload.github.com/unglud/dusker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537137,"owners_count":21120709,"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":["chromedriver","dusk","integration-testing","laravel","phpunit","selenium"],"created_at":"2024-09-24T19:45:43.601Z","updated_at":"2025-10-11T07:06:31.900Z","avatar_url":"https://github.com/unglud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dusker\nStand-alone Laravel Dusk test suit, which does not require Laravel framework itself.\n\n\u003ca href=\"https://travis-ci.org/laravel/dusk\"\u003e\u003cimg src=\"https://travis-ci.org/unglud/dusker.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/unglud/dusker\"\u003e\u003cimg src=\"https://poser.pugx.org/unglud/dusker/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/unglud/dusker\"\u003e\u003cimg src=\"https://poser.pugx.org/unglud/dusker/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/unglud/dusker\"\u003e\u003cimg src=\"https://poser.pugx.org/unglud/dusker/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\n\u003cp\u003e\u003cimg src=\"https://laravel.com/assets/img/components/logo-dusk.svg\"\u003e\u003c/p\u003e\n\n\u003ca href=\"https://github.com/laravel/dusk\"\u003eLaravel Dusk\u003c/a\u003e provides an expressive, easy-to-use browser automation and testing API. By default, Dusk does not require you to install JDK or Selenium on your machine. Instead, Dusk uses a standalone Chrome driver. However, you are free to utilize any other Selenium driver you wish.\n\n## Installation\nTo get started, you should add the unglud/dusker Composer dependency to your project:\n```\ncomposer require --dev unglud/dusker\n```\n\nNext, you need to copy all necessary files to your working directory. The command below will do it for you. It creates (or use existing) `tests` directory and put files there. Also, it copies `artisan` console utility to your project root directory. **If you already have this file, it will be overwritten!**\n\nThe file `.env.dusk` will be in your project root as well, which you will need rename to `.env` or copy it content to your existing one.\n```\ncomposer run-script post-install-cmd -d ./vendor/unglud/dusker\n```\n\nIf you would like these files to update automatically each time you update this package, you can add this to your `composer.json` file:\n```\n\"scripts\": {\n  \"post-install-cmd\": [\n    \"Dusker\\\\CopyFile::copy\"\n  ],\n  \"post-update-cmd\": [\n    \"Dusker\\\\CopyFile::copy\"\n  ]\n},\n\"extra\": {\n  \"copy-file\": {\n    \"vendor/unglud/dusker/src/example/\": \"tests/\",\n    \"vendor/unglud/dusker/artisan\": \"artisan\"\n  }\n}\n```\n\nAs you notice file `.env.dusk` not included there to simplify things.\n\nAfter installing the package, Artisan commands will be available from your root project. Run the `dusk:install` Artisan command:\n\n```\nphp artisan dusk:install\n```\n\nNow try to run test to make sure everything works\n```\nphp artisan dusk\n```\n\n## How to use\nAfter this part you can use official documentation for Dusk on the [Laravel website](https://laravel.com/docs/master/dusk), `cuz it will work exactly as it was designed by [Taylor Otwell](https://github.com/taylorotwell).\n\n## Authentication\nOften, you will be testing pages that require authentication. You can use Dusk's loginAs method in order to avoid interacting with the login screen during every test. The loginAs method accepts a user `login` and `password`:\n\n```\n$this-\u003ebrowse(function (Browser $browser) {\n    $browser-\u003eloginAs('username', 'password')\n          -\u003evisit('/home');\n});\n```\nAfter using the loginAs method, the user session will be maintained for all tests within the file.\n\n### Authentication Setup\nSince we do not have access to native `Auth` and `Router` from Laravel, because we use it without Laravel we need to setup login functionality.\nIn `.env` you should specify `LOGIN_ENDPOINT` -- path to your public directory where Dusker will copy the file which will be accessible from a browser. By default its `http://example.com/_dusker/login.php`. Second `LOGIN_IMPLEMENTATION` -- path to your class, which utilize logic of your project allowing Authentication. You can use `/tests/LoginManagerExample.php` as an example of how it should look.\n\n## License\n\nDusker is released under the MIT Licence. See the bundled [LICENSE](https://github.com/unglud/dusker/blob/master/LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funglud%2Fdusker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funglud%2Fdusker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funglud%2Fdusker/lists"}