2017 © Pedro Peláez
 

library netscape-cookie-file-handler

Netscape Cookie File Handler

image

kegi/netscape-cookie-file-handler

Netscape Cookie File Handler

  • Wednesday, June 20, 2018
  • by kegi
  • Repository
  • 2 Watchers
  • 7 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 24 % Grown

The README.md

Netscape Cookie File Handler

Build Status Latest Stable Version Test Coverage, (*1)

Issue Count Code Climate SensioLabsInsight, (*2)

This library allows you to manipulate Netscape Cookie File (eg. Cookies generated by CURL)., (*3)


Requirements

This is library is only available for PHP7+ There is no other dependencies, (*4)

Installation

This library is available on packagist (Composer), (*5)

composer require kegi/netscape-cookie-file-handler

What are Cookies Files ?

The Netscape cookie files are widely used. Curl, by example, allows you to select a file (called the cookie jar) to save and read the cookies using this format. This library will help you to manipulate and read those cookies., (*6)

Example

Simple example of reading + writing cookies, (*7)

/*Open and parse the cookie file*/

$configuration = (new Configuration())->setCookieDir('cookies/');
$cookieJar = (new CookieFileHandler($configuration))->parseFile('my_cookie_file');

/*Add (and save) a cookie*/

$cookieJar->add(
    (new Cookie())
        ->setHttpOnly(true)
        ->setPath('/foo')
        ->setSecure(true)
        ->setExpire(new DateTime('2020-02-20 20:20:02'))
        ->setName('foo')
        ->setValue('bar')
)->persist();

Documentation

Learn how to use the library here : documentation., (*8)

Contribution

Feel free to contact me or send pull requests !, (*9)

The Versions

20/06 2018

dev-master

9999999-dev

Netscape Cookie File Handler

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Kevin Gilbert

cookie netscape cookie file

20/02 2016

1.0.3

1.0.3.0

Netscape Cookie File Handler

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Kevin Gilbert

cookie netscape cookie file

20/02 2016

dev-develop

dev-develop

Netscape Cookie File Handler

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Kevin Gilbert

cookie netscape cookie file

20/02 2016

1.0.2

1.0.2.0

Netscape Cookie File Handler

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Kevin Gilbert

cookie netscape cookie file

17/02 2016

1.0.1

1.0.1.0

Netscape Cookie File Handler

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Kevin Gilbert

cookie netscape cookie file

16/02 2016

1.0.0

1.0.0.0

Netscape Cookie File Handler

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Kevin Gilbert

cookie netscape cookie file