Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zoilomora/editthiscookie-for-guzzle

FileCookieJar implementation for EditThisCookie in Guzzle
https://github.com/zoilomora/editthiscookie-for-guzzle

cookie cookies editthiscookie filecookiejar guzzle guzzlehttp

Last synced: 3 months ago
JSON representation

FileCookieJar implementation for EditThisCookie in Guzzle

Awesome Lists containing this project

README

        

# EditThisCookie for Guzzle
[FileCookieJar] implementation for Google Chrome [EditThisCookie] extension in [Guzzle].

## Usage

This implementation allows the use of cookies exported from the Google Chrome [EditThisCookie] extension
directly in [Guzzle] and in turn.. the cookies that [Guzzle] has modified re-import them into the browser.

Example:

Once the website is logged in, export the cookies `json` in a `cookies.json` file.

![export option](images/export.png)

```php
new \ZoiloMora\EditThisCookie\Guzzle\FileCookieJar($cookieFile),
]);
```

## License
Licensed under the [MIT license](http://opensource.org/licenses/MIT)

Read [LICENSE](LICENSE) for more information

[FileCookieJar]: https://github.com/guzzle/guzzle/blob/7.0/src/Cookie/CookieJarInterface.php
[EditThisCookie]: http://www.editthiscookie.com/
[Guzzle]: https://docs.guzzlephp.org/en/stable/