Download the PHP package tobento/service-cookie without Composer

On this page you can find all versions of the php package tobento/service-cookie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package service-cookie

Cookie Service

The cookie service provides a way for managing cookies for PHP applications.

Table of Contents

Getting started

Add the latest version of the cookie service project running this command.

Requirements

Highlights

Documentation

Basic Usage

Simple example using the cookie service in your application:

Using Middleware

You may prefer to use the middlware:

Read and write cookies

Read Cookie

Cookie Values Factory

You may use the to create cookie values:

createCookieValuesFromArray

You may check out the Cookie Values to learn more about it.

createCookieValuesFromCookies

You may check out the Cookie Values to learn more about it.

You may check out the Cookies to learn more about it.

Cookie Values

get

Get a cookie value by name.

has

Check if a cookie value by name exists.

all

Get a cookie values.

map

Map over each of the cookie values returning a new instance.

withValues

Returns a new instance with the specified values.

Write Cookie

Cookies Factory

You may use the to create cookies:

createCookies

You may check out the Cookie Factory to learn more about it.

You may check out the Cookies to learn more about it.

createCookiesFromKeyValuePairs

Create new cookies from key/value pairs. May be used for creating cookies from the superglobal.

You may check out the Cookie Factory to learn more about it.

You may check out the Cookies to learn more about it.

createCookiesFromArray

You may check out the Cookie Factory to learn more about it.

You may check out the Cookies to learn more about it.

Cookies

You may check out the Cookie Factory to learn more about it.

addCookie

Add a cookie object.

You may check out the Cookie Factory to learn more about it.

add

Add a cookie.

You may change the default values by a custom .

You may check out the Cookie Factory to learn more about it.

get

Returns a cookie by the specified parameters or null if not found.

clear

Clear a cookie by the specified parameters.

column

Sometimes you may need only specific columns from the cookies returning an .

first

Returns the first cookie, otherwise null.

all

Returns all cookies.

filter

Returns a new instance with the filtered cookies.

name

Returns a new instance with the name filtered.

path

Returns a new instance with the path filtered.

domain

Returns a new instance with the domain filtered.

map

Map over each of the cookies returning a new instance.

toHeader

Returns the cookie header.

Cookie Factory

You may use the to create a cookie:

createCookie

You may check out the Cookie to learn more about it.

createCookieFromArray

You may check out the Cookie to learn more about it.

Cookie

Cookies Processor

You may use the default cookies processor for encrypting and decrypting cookie values or you may create a custom processor suiting your needs.

Check out the Encryption Service to learn more about it.

processCookieValues

Decrypting the cookie values.

You may check out the Cookie Values to learn more about it.

processCookies

Encrypting the cookie values.

You may check out the Cookies to learn more about it.

whitelistCookie

You may use the to add a cookie the whitelist meaning no encryption/decryption is done.

whitelistedCookies

Returns the whitelisted cookies.

Credits


All versions of service-cookie with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
tobento/service-collection Version ^1.0.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tobento/service-cookie contains the following files

Loading the files please wait ....