Download the PHP package wan/raw-cookie without Composer

On this page you can find all versions of the php package wan/raw-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 raw-cookie

composer.RawCookie

简介

Laravel框架下,设置Raw Cookie

Laravel 5.3及5.4框架Cookie::queue已支持setrawcookie,但是5.1及5.2中暂不支持。 通过安装这个包后,简单配置后即可实现同样功能。

优势:

相对于原生的setcookie及setrawcookie,使用该包后可以优雅的使用切面编程,对已经设置的cookie进行取消操作。而不需要侵入到业务代码中,根据业务逻辑判断是否设置该cookie

安装:

配置:

配置Providers

修改config/app.php配置文件,在providers数组中,添加服务提供者

配置Class Aliases

修改config/app.php配置文件,在aliases数组中,添加别名

配置Middleware

修改app/Http/Kernel.php

Laravel5.2:在$middlewareGroups=>web中添加

Laravel5.1:在$middleware中添加

使用

在需要添加cookie的地方,使用下面代码添加

在需要取消添加cookie的地方,使用下面代码

判断是否添加了cookie


All versions of raw-cookie with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version 5.1.* || 5.2.*
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 wan/raw-cookie contains the following files

Loading the files please wait ....