2017 © Pedro Peláez
 

package fcphp-cookie

Package to manipulate Cookies

image

00f100/fcphp-cookie

Package to manipulate Cookies

  • Friday, July 13, 2018
  • by 00F100
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

FcPhp Cookie

Package to manipulate Cookie, (*1)

Build Status codecov Total Downloads, (*2)

How to install

Composer:, (*3)

$ composer require 00f100/fcphp-cookie

or add in composer.json, (*4)

{
    "require": {
        "00f100/fcphp-cookie": "*"
    }
}

How to use


use FcPhp\Cookie\Facades\CookieFacade; /** * Facade to return instance of Cookie * * @param string $key Key into $_COOKIE of Cookie * @param array $cookies Variable $_SESSION * @param string $nonce Nonce to Crypto * @param string $pathKeys Path to save keys of Crypto * @param string $forceNewInstance Force create new instance * @return FcPhp\Cookie\Interfaces\ICookie */ CookieFacade::getInstance(string $key, array $cookies, string $nonce = null, string $pathKeys = null, bool $forceNewInstance = false) :ICookie // With No Crypto into content $cookie = CookieFacade::getInstance('key-cookie', $_COOKIE); // With Crypto into content use FcPhp\Crypto\Crypto; $nonce = Crypto::getNonce(); $cookie = CookieFacade::getInstance('key-cookie', $_COOKIE, $nonce); // Create new configuration $cookie->set('item.config', 'value'); // Print: value echo $cookie->get('item.config');

The Versions

13/07 2018

dev-master

9999999-dev https://github.com/00f100/fcphp-cookie

Package to manipulate Cookies

  Sources   Download

The Requires

 

The Development Requires

cookie package manipulate fcphp

13/07 2018

0.1.1

0.1.1.0 https://github.com/00f100/fcphp-cookie

Package to manipulate Cookies

  Sources   Download

The Requires

 

The Development Requires

cookie package manipulate fcphp

07/07 2018

0.1.0

0.1.0.0 https://github.com/00f100/fcphp-cookie

Package to manipulate Cookies

  Sources   Download

The Requires

 

The Development Requires

cookie package manipulate fcphp