{"id":15039507,"url":"https://github.com/minkphp/mink","last_synced_at":"2025-05-15T01:03:57.616Z","repository":{"id":405488,"uuid":"1567795","full_name":"minkphp/Mink","owner":"minkphp","description":"PHP web browser emulator abstraction","archived":false,"fork":false,"pushed_at":"2025-02-07T09:31:36.000Z","size":1489,"stargazers_count":1600,"open_issues_count":75,"forks_count":280,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-05-03T07:08:42.991Z","etag":null,"topics":["browser-automation","mink","php"],"latest_commit_sha":null,"homepage":"https://mink.behat.org/","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/minkphp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2011-04-04T16:11:16.000Z","updated_at":"2025-04-09T18:21:18.000Z","dependencies_parsed_at":"2024-02-26T01:49:01.249Z","dependency_job_id":"1535dc47-7415-4812-a3ac-f93efe6ef684","html_url":"https://github.com/minkphp/Mink","commit_stats":{"total_commits":1010,"total_committers":104,"mean_commits":9.711538461538462,"dds":0.5188118811881188,"last_synced_commit":"83d1759fe66c48983f1ce393f8b7d2c2b2a22de5"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minkphp%2FMink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minkphp%2FMink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minkphp%2FMink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minkphp%2FMink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minkphp","download_url":"https://codeload.github.com/minkphp/Mink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252882778,"owners_count":21819152,"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":["browser-automation","mink","php"],"created_at":"2024-09-24T20:43:05.140Z","updated_at":"2025-05-07T12:48:48.453Z","avatar_url":"https://github.com/minkphp.png","language":"PHP","readme":"Mink\n====\n[![Latest Stable Version](https://poser.pugx.org/behat/mink/v/stable.svg)](https://packagist.org/packages/behat/mink)\n[![Latest Unstable Version](https://poser.pugx.org/behat/mink/v/unstable.svg)](https://packagist.org/packages/behat/mink)\n[![Total Downloads](https://poser.pugx.org/behat/mink/downloads.svg)](https://packagist.org/packages/behat/mink)\n[![CI](https://github.com/minkphp/Mink/actions/workflows/tests.yml/badge.svg)](https://github.com/minkphp/Mink/actions/workflows/tests.yml)\n[![License](https://poser.pugx.org/behat/mink/license.svg)](https://packagist.org/packages/behat/mink)\n\n\nUseful Links\n------------\n\n- The main website with documentation is at [https://mink.behat.org](https://mink.behat.org)\n- Official Google Group is at [https://groups.google.com/group/behat](https://groups.google.com/group/behat)\n- [Note on Patches/Pull Requests](CONTRIBUTING.md)\n\nUsage Example\n-------------\n\n``` php\n\u003c?php\n\nuse Behat\\Mink\\Mink,\n    Behat\\Mink\\Session,\n    Behat\\Mink\\Driver\\GoutteDriver,\n    Behat\\Mink\\Driver\\Goutte\\Client as GoutteClient;\n\n$startUrl = 'http://example.com';\n\n// init Mink and register sessions\n$mink = new Mink(array(\n    'goutte1' =\u003e new Session(new GoutteDriver(new GoutteClient())),\n    'goutte2' =\u003e new Session(new GoutteDriver(new GoutteClient())),\n    'custom'  =\u003e new Session(new MyCustomDriver($startUrl))\n));\n\n// set the default session name\n$mink-\u003esetDefaultSessionName('goutte2');\n\n// visit a page\n$mink-\u003egetSession()-\u003evisit($startUrl);\n\n// call to getSession() without argument will always return a default session if has one (goutte2 here)\n$mink-\u003egetSession()-\u003egetPage()-\u003efindLink('Downloads')-\u003eclick();\necho $mink-\u003egetSession()-\u003egetPage()-\u003egetContent();\n\n// call to getSession() with argument will return session by its name\n$mink-\u003egetSession('custom')-\u003egetPage()-\u003efindLink('Downloads')-\u003eclick();\necho $mink-\u003egetSession('custom')-\u003egetPage()-\u003egetContent();\n\n// this all is done to make possible mixing sessions\n$mink-\u003egetSession('goutte1')-\u003egetPage()-\u003efindLink('Chat')-\u003eclick();\n$mink-\u003egetSession('goutte2')-\u003egetPage()-\u003efindLink('Chat')-\u003eclick();\n```\n\nInstall Dependencies\n--------------------\n\n``` bash\n$\u003e curl -sS https://getcomposer.org/installer | php\n$\u003e php composer.phar install\n```\n\nContributors\n------------\n\n* Konstantin Kudryashov [everzet](https://github.com/everzet) [lead developer]\n* Christophe Coevoet [stof](https://github.com/stof) [lead developer]\n* Alexander Obuhovich [aik099](https://github.com/aik099) [lead developer]\n* Other [awesome developers](https://github.com/minkphp/Mink/graphs/contributors)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminkphp%2Fmink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminkphp%2Fmink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminkphp%2Fmink/lists"}