Giter VIP home page Giter VIP logo

cookies's People

Contributors

dependabot[bot] avatar devanych avatar fantom409 avatar roxblnfk avatar rustamwin avatar samdark avatar sankaest avatar stylecibot avatar terabytesoftw avatar viktorprogger avatar vjik avatar xepozz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookies's Issues

Can we get releases/tags?

I'm part of the Flarum software project and we are currently looking at replacing our existing cookie library because it lacks PHP 8.0 support and because it hasn't been updated properly in at least 2 years. This library appears to be the perfect replacement, however because it lacks tags/releases we are unable to use it.

Is there any chance that tags/releases could be done for this library so that other projects can use it properly without warnings about stability and other issues?

I'm shocked when reading the code: create 1 object with 6 "clone"

I'm shocked when reading this code

$cookie = (new \Yiisoft\Cookies\Cookie('cookieName', 'value'))
->withPath('/')
->withDomain('yiiframework.com')
->withHttpOnly(true)
->withSecure(true)
->withSameSite(\Yiisoft\Cookies\Cookie::SAME_SITE_STRICT)
->withMaxAge(new \DateInterval('P7D'));

this code, create 1 Cookie object with 6 object clone

every method with "with" prefix allways use clone to create object

what is the purpose?

Fix tests: sometimes is fail by reason usage `time()`

Fail tests:

1) Yiisoft\Cookies\Tests\CookieTest::testFromCookieString with data set #0 ('sessionId=e8bb43229de9; Domai...traKey', Yiisoft\Cookies\Cookie Object (...))
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'sessionId=e8bb43229de9; Expires=Tue, 12 Sep 20[23](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:24) 12:50:00 GMT; Max-Age=3599; Domain=foo.example.com; Path=/test; Secure; HttpOnly; SameSite=Strict'
+'sessionId=e8bb43229de9; Expires=Tue, 12 Sep 2023 12:50:01 GMT; Max-Age=3600; Domain=foo.example.com; Path=/test; Secure; HttpOnly; SameSite=Strict'

/home/runner/work/cookies/cookies/tests/CookieTest.php:[24](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:25)8
phpvfscomposer:///home/runner/work/cookies/cookies/vendor/phpunit/phpunit/phpunit:106

2) Yiisoft\Cookies\Tests\CookieTest::testFromCookieString with data set #2 ('sessionId=e8bb432[29](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:30)de9; Domai...ge=bla', Yiisoft\Cookies\Cookie Object (...))
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'sessionId=e8bb4[32](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:33)29de9; Expires=Tue, 12 Sep 2023 11:50:00 GMT; Max-Age=-1; Domain=foo.example.com=test'
+'sessionId=e8bb43229de9; Expires=Tue, 12 Sep 2023 11:50:01 GMT; Max-Age=0; Domain=foo.example.com=test'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.