One Hat Cyber Team
Your IP:
216.73.216.102
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
fluxyjvi
/
.cagefs
/
tmp
/
Edit File:
phpolfL7E
src/CookieConsentServiceProvider.php 0000644 00000002172 15107326720 0013650 0 ustar 00 <?php namespace Spatie\CookieConsent; use Illuminate\Contracts\View\View; use Illuminate\Cookie\Middleware\EncryptCookies; use Illuminate\Support\Facades\Cookie; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; class CookieConsentServiceProvider extends PackageServiceProvider { public function configurePackage(Package $package): void { $package ->name('laravel-cookie-consent') ->hasConfigFile() ->hasViews() ->hasTranslations() ->hasViewComposer('cookie-consent::index', function (View $view) { $cookieConsentConfig = config('cookie-consent'); $alreadyConsentedWithCookies = Cookie::has($cookieConsentConfig['cookie_name']); $view->with(compact('alreadyConsentedWithCookies', 'cookieConsentConfig')); }); } public function packageBooted(): void { $this->app->resolving(EncryptCookies::class, function (EncryptCookies $encryptCookies) { $encryptCookies->disableFor(config('cookie-consent.cookie_name')); }); } } src/error_log 0000644 00000001436 15107326720 0007257 0 ustar 00 [18-Nov-2025 21:51:02 UTC] PHP Fatal error: Uncaught Error: Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found in /home/fluxyjvi/public_html/project/vendor/spatie/laravel-cookie-consent/src/CookieConsentServiceProvider.php:11 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/spatie/laravel-cookie-consent/src/CookieConsentServiceProvider.php on line 11 [19-Nov-2025 05:08:52 UTC] PHP Fatal error: Uncaught Error: Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found in /home/fluxyjvi/public_html/project/vendor/spatie/laravel-cookie-consent/src/CookieConsentServiceProvider.php:11 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/spatie/laravel-cookie-consent/src/CookieConsentServiceProvider.php on line 11 src/CookieConsentMiddleware.php 0000644 00000002467 15107326721 0012622 0 ustar 00 <?php namespace Spatie\CookieConsent; use Closure; use Illuminate\Http\Response; class CookieConsentMiddleware { public function handle($request, Closure $next) { $response = $next($request); if (! config('cookie-consent.enabled')) { return $response; } if (! $response instanceof Response) { return $response; } if (! $this->containsBodyTag($response)) { return $response; } return $this->addCookieConsentScriptToResponse($response); } protected function containsBodyTag(Response $response): bool { return $this->getLastClosingBodyTagPosition($response->getContent()) !== false; } protected function addCookieConsentScriptToResponse(Response $response): Response { $content = $response->getContent(); $closingBodyTagPosition = $this->getLastClosingBodyTagPosition($content); $content = '' .substr($content, 0, $closingBodyTagPosition) .view('cookie-consent::index')->render() .substr($content, $closingBodyTagPosition); return $response->setContent($content); } protected function getLastClosingBodyTagPosition(string $content = ''): bool | int { return strripos($content, '</body>'); } } .php-cs-fixer.dist.php 0000644 00000002476 15107326721 0010617 0 ustar 00 <?php $finder = Symfony\Component\Finder\Finder::create() ->notPath('bootstrap/*') ->notPath('storage/*') ->notPath('vendor') ->in([ __DIR__ . '/src', __DIR__ . '/tests', ]) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); return (new PhpCsFixer\Config) ->setRules([ '@PSR2' => true, 'array_syntax' => ['syntax' => 'short'], 'ordered_imports' => ['sort_algorithm' => 'alpha'], 'no_unused_imports' => true, 'not_operator_with_successor_space' => true, 'trailing_comma_in_multiline' => true, 'phpdoc_scalar' => true, 'unary_operator_spaces' => true, 'binary_operator_spaces' => true, 'blank_line_before_statement' => [ 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], ], 'phpdoc_single_line_var_spacing' => true, 'phpdoc_var_without_name' => true, 'class_attributes_separation' => [ 'elements' => [ 'method' => 'one', 'property' => 'one', ], ], 'method_argument_space' => [ 'on_multiline' => 'ensure_fully_multiline', 'keep_multiple_spaces_after_comma' => true, ] ]) ->setFinder($finder); README.md 0000644 00000014772 15107326721 0006042 0 ustar 00 [<img src="https://github-ads.s3.eu-central-1.amazonaws.com/support-ukraine.svg?t=1" />](https://supportukrainenow.org) # Make your Laravel app comply with the crazy EU cookie law [](https://packagist.org/packages/spatie/laravel-cookie-consent) [](LICENSE.md)  [](https://packagist.org/packages/spatie/laravel-cookie-consent) All sites owned by EU citizens or targeted towards EU citizens must comply with a crazy EU law. This law requires a dialog to be displayed to inform the users of your websites how cookies are being used. You can read more info on the legislation on [the site of the European Commission](http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm#section_2). This package provides an easily configurable view to display the message. Also included is JavaScript code to set a cookie when a user agrees with the cookie policy. The package will not display the dialog when that cookie has been set. Spatie is a web design agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource). ## Support us [<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-cookie-consent.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-cookie-consent) We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us). We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards). ## Installation You can install the package via composer: ``` bash composer require spatie/laravel-cookie-consent ``` The package will automatically register itself. Optionally you can publish the config-file: ```bash php artisan vendor:publish --provider="Spatie\CookieConsent\CookieConsentServiceProvider" --tag="cookie-consent-config" ``` This is the contents of the published config-file: ```php return [ /* * Use this setting to enable the cookie consent dialog. */ 'enabled' => env('COOKIE_CONSENT_ENABLED', true), /* * The name of the cookie in which we store if the user * has agreed to accept the conditions. */ 'cookie_name' => 'laravel_cookie_consent', /* * Set the cookie duration in days. Default is 365 * 20. */ 'cookie_lifetime' => 365 * 20, ]; ``` The cookie domain is set by the 'domain' key in config/session.php, make sure you add a value in your .env for SESSION_DOMAIN. If you are using a domain with a port in the url such as 'localhost:3000', this package will not work until you do so. ## Usage To display the dialog all you have to do is include this view in your template: ```blade //in your blade template @include('cookie-consent::index') ``` This will render the following dialog that, when styled, will look very much like this one.  The default styling provided by this package uses TailwindCSS v2 to provide a floating banner at the bottom of the page. When the user clicks "Allow cookies" a `laravel_cookie_consent` cookie will be set and the dialog will be removed from the DOM. On the next request, Laravel will notice that the `laravel_cookie_consent` has been set and will not display the dialog again ## Customising the dialog texts If you want to modify the text shown in the dialog you can publish the lang-files with this command: ```bash php artisan vendor:publish --provider="Spatie\CookieConsent\CookieConsentServiceProvider" --tag="cookie-consent-translations" ``` This will publish this file to `resources/lang/vendor/cookie-consent/en/texts.php`. ```php return [ 'message' => 'Please be informed that this site uses cookies.', 'agree' => 'Allow cookies', ]; ``` If you want to translate the values to, for example, French, just copy that file over to `resources/lang/vendor/cookie-consent/fr/texts.php` and fill in the French translations. ### Customising the dialog contents If you need full control over the contents of the dialog. You can publish the views of the package: ```bash php artisan vendor:publish --provider="Spatie\CookieConsent\CookieConsentServiceProvider" --tag="cookie-consent-views" ``` This will copy the `index` and `dialogContents` view files over to `resources/views/vendor/cookie-consent`. You probably only want to modify the `dialogContents` view. If you need to modify the JavaScript code of this package you can do so in the `index` view file. ## Using the middleware Instead of including `cookie-consent::index` in your view you could opt to add the `Spatie\CookieConsent\CookieConsentMiddleware` to your kernel: ```php // app/Http/Kernel.php class Kernel extends HttpKernel { protected $middleware = [ // ... \Spatie\CookieConsent\CookieConsentMiddleware::class, ]; // ... } ``` This will automatically add `cookie-consent::index` to the content of your response right before the closing body tag. ## Notice The legislation is pretty very vague on how to display the warning, which texts are necessary, and what options you need to provide. This package will go a long way towards compliance, but if you want to be 100% sure that your website is ok, you should consult a legal expert. ## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash composer test ``` ## Contributing Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details. ## Security If you discover any security-related issues, please email freek@spatie.be instead of using the issue tracker. ## Credits - [Freek Van der Herten](https://github.com/freekmurze) - [Willem Van Bockstal](https://github.com/willemvb) - [All Contributors](../../contributors) ## License The MIT License (MIT). Please see [License File](LICENSE.md) for more information. resources/lang/de/texts.php 0000644 00000000206 15107326721 0011751 0 ustar 00 <?php return [ 'message' => 'Diese Seite verwendet Cookies um das Nutzererlebnis zu steigern.', 'agree' => 'Akzeptieren', ]; resources/lang/th/texts.php 0000644 00000000545 15107326721 0012002 0 ustar 00 <?php return [ 'message' => 'เราใช้คุกกี้เพื่อเพิ่มประสบการณ์ในการเยี่ยมชมเว็บไซต์นี้ อณุญาตคุกกี้เพื่อรับประสบการณ์ที่ดีขึ้น', 'agree' => 'ตกลง', ]; resources/lang/en/texts.php 0000644 00000000212 15107326722 0011761 0 ustar 00 <?php return [ 'message' => 'Your experience on this site will be improved by allowing cookies.', 'agree' => 'Allow cookies', ]; resources/lang/cs/texts.php 0000644 00000000227 15107326722 0011772 0 ustar 00 <?php return [ 'message' => 'Tato stránka používá cookies na vylepšení vašeho uživatelského zážitku.', 'agree' => 'Souhlasím', ]; resources/lang/vi/texts.php 0000644 00000000266 15107326722 0012006 0 ustar 00 <?php return [ 'message' => 'Trải nghiệm của bạn trên trang web này sẽ được cải thiện bằng cách cho phép Cookie.', 'agree' => 'Cho phép Cookie', ]; resources/lang/ro/texts.php 0000644 00000000250 15107326722 0012001 0 ustar 00 <?php return [ 'message' => 'Experiența ta pe acest site va fi îmbunătățită dacă acceptați folosirea de cookie-uri.', 'agree' => 'Acceptă cookie', ]; resources/lang/et/texts.php 0000644 00000000224 15107326723 0011773 0 ustar 00 <?php return [ 'message' => 'Sellel veebilehel on kasutusel cookies-failid teie kasutajaliidese parandamiseks.', 'agree' => 'Sain aru', ]; resources/lang/hu/texts.php 0000644 00000000220 15107326723 0011773 0 ustar 00 <?php return [ 'message' => 'A megfelelő élmény biztosításához sütikre van szükség.', 'agree' => 'Sütik engedélyezése', ]; resources/lang/el/texts.php 0000644 00000000334 15107326723 0011765 0 ustar 00 <?php return [ 'message' => 'Η ιστοσελίδα μας χρησιμοποιεί cookies για να βελτιώσει την εμπειρία περιήγησής σας.', 'agree' => 'Αποδοχή', ]; resources/lang/ru/texts.php 0000644 00000000361 15107326723 0012013 0 ustar 00 <?php return [ 'message' => 'На этом сайте используются файлы cookies для улучшения вашего пользовательского интерфейса.', 'agree' => 'Разрешить', ]; resources/lang/nl/texts.php 0000644 00000000220 15107326724 0011771 0 ustar 00 <?php return [ 'message' => 'Uw ervaring op deze site wordt verbeterd door het gebruik van cookies.', 'agree' => 'Sta cookies toe', ]; resources/lang/pt/texts.php 0000644 00000000227 15107326724 0012012 0 ustar 00 <?php return [ 'message' => 'Este site utiliza cookies. Ao navegar no site estará a consentir a sua utilização.', 'agree' => 'Aceitar', ]; resources/lang/es/texts.php 0000644 00000000204 15107326724 0011771 0 ustar 00 <?php return [ 'message' => 'Su experiencia en este sitio será mejorada con el uso de cookies.', 'agree' => 'Aceptar', ]; resources/lang/pl/texts.php 0000644 00000000220 15107326724 0011773 0 ustar 00 <?php return [ 'message' => 'Twoje doświadczenia na tej witrynie będą lepsze dzięki cookies.', 'agree' => 'Zezwalaj na cookie', ]; resources/lang/pt_BR/texts.php 0000644 00000000227 15107326725 0012376 0 ustar 00 <?php return [ 'message' => 'Este site utiliza cookies. Ao continuar navegando, você concorda com as condições.', 'agree' => 'Aceitar', ]; resources/lang/sv/texts.php 0000644 00000000336 15107326725 0012021 0 ustar 00 <?php return [ 'message' => 'Vi använder kakor (cookies) för att webbplatsen ska fungera på ett bra sätt för dig. Genom att surfa vidare godkänner du att vi använder kakor.', 'agree' => 'Jag förstår', ]; resources/lang/oc/texts.php 0000644 00000000226 15107326725 0011770 0 ustar 00 <?php return [ 'message' => 'Vòstra experiéncia sul site serà melhora en autorizant los cookies.', 'agree' => 'Autorizar los cookies', ]; resources/lang/mk/texts.php 0000644 00000000312 15107326725 0011772 0 ustar 00 <?php return [ 'message' =>'Вашето искуство на оваа страница ќе се подобри со дозволување колачиња', 'agree' => 'Дозволи', ]; resources/lang/tr/texts.php 0000644 00000000224 15107326726 0012013 0 ustar 00 <?php return [ 'message' => 'Bu sitedeki deneyiminizi çerezlere izin vererek geliştirebilirsiniz.', 'agree' => 'Çerezlere izin ver', ]; resources/lang/sk/texts.php 0000644 00000000231 15107326726 0012001 0 ustar 00 <?php return [ 'message' => 'Táto stránka používa cookies na vylepšenie vášho užívateľského zážitku.', 'agree' => 'Súhlasím', ]; resources/lang/fr/texts.php 0000644 00000000216 15107326726 0011776 0 ustar 00 <?php return [ 'message' => "Ce site nécessite l'autorisation de cookies pour fonctionner correctement.", 'agree' => 'Accepter', ]; resources/lang/bn/texts.php 0000644 00000000533 15107326727 0011771 0 ustar 00 <?php return [ 'message' => 'এই সাইটে কুকি ব্যবহারের অনুমতি প্রদান করার মাধ্যমে আপনার অভিজ্ঞতা উন্নত করা হবেে।', 'agree' => 'কুকি ব্যবহারের অনুমতি দিন', ]; resources/lang/eo/texts.php 0000644 00000000203 15107326727 0011767 0 ustar 00 <?php return [ 'message' => 'Tiu ĉi retejo uzas kuketojn por plibonigi vian sperton.', 'agree' => 'Akcepti kuketojn', ]; resources/lang/da/texts.php 0000644 00000000224 15107326727 0011753 0 ustar 00 <?php return [ 'message' => 'Din oplevelse på dette websted vil blive forbedret ved at tillade cookies.', 'agree' => 'Tillad cookies', ]; resources/lang/bg/texts.php 0000644 00000000326 15107326727 0011762 0 ustar 00 <?php return [ 'message' => 'Този сайт използва бисквитки, за да подобри вашето потребителско изживяване.', 'agree' => 'Приемам', ]; resources/lang/id/texts.php 0000644 00000000230 15107326730 0011752 0 ustar 00 <?php return [ 'message' => 'Pengalaman anda pada situs ini akan meningkat dengan cara mengizinkan cookies.', 'agree' => 'Izinkan Cookies', ]; resources/lang/nb/texts.php 0000644 00000000270 15107326730 0011761 0 ustar 00 <?php return [ 'message' => 'Din opplevelse på dette nettstedet vil bli forbedret ved å tillate informasjonskapsler (cookies).', 'agree' => 'Tillat informasjonskapsler', ]; resources/lang/kr/texts.php 0000644 00000000222 15107326730 0011773 0 ustar 00 <?php return [ 'message' => '보다 나은 사용자 경험을 위해 쿠키를 허용해 주십시요.', 'agree' => '쿠키 허용', ]; resources/lang/ar/texts.php 0000644 00000000310 15107326730 0011757 0 ustar 00 <?php return [ 'message' => 'سيتم تحسين تجربتنا على هذا الموقع من خلال السماح بملفات تعريف الارتباط', 'agree' => 'السماح', ]; resources/lang/it/texts.php 0000644 00000000234 15107326731 0011777 0 ustar 00 <?php return [ 'message' => 'Questo sito utilizza i cookies per offrire un\'esperienza migliore all\'utente.', 'agree' => 'Consenti i cookies', ]; resources/views/index.blade.php 0000644 00000004026 15107326731 0012610 0 ustar 00 @if($cookieConsentConfig['enabled'] && ! $alreadyConsentedWithCookies) @include('cookie-consent::dialogContents') <script> window.laravelCookieConsent = (function () { const COOKIE_VALUE = 1; const COOKIE_DOMAIN = '{{ config('session.domain') ?? request()->getHost() }}'; function consentWithCookies() { setCookie('{{ $cookieConsentConfig['cookie_name'] }}', COOKIE_VALUE, {{ $cookieConsentConfig['cookie_lifetime'] }}); hideCookieDialog(); } function cookieExists(name) { return (document.cookie.split('; ').indexOf(name + '=' + COOKIE_VALUE) !== -1); } function hideCookieDialog() { const dialogs = document.getElementsByClassName('js-cookie-consent'); for (let i = 0; i < dialogs.length; ++i) { dialogs[i].style.display = 'none'; } } function setCookie(name, value, expirationInDays) { const date = new Date(); date.setTime(date.getTime() + (expirationInDays * 24 * 60 * 60 * 1000)); document.cookie = name + '=' + value + ';expires=' + date.toUTCString() + ';domain=' + COOKIE_DOMAIN + ';path=/{{ config('session.secure') ? ';secure' : null }}' + '{{ config('session.same_site') ? ';samesite='.config('session.same_site') : null }}'; } if (cookieExists('{{ $cookieConsentConfig['cookie_name'] }}')) { hideCookieDialog(); } const buttons = document.getElementsByClassName('js-cookie-consent-agree'); for (let i = 0; i < buttons.length; ++i) { buttons[i].addEventListener('click', consentWithCookies); } return { consentWithCookies: consentWithCookies, hideCookieDialog: hideCookieDialog }; })(); </script> @endif resources/views/dialogContents.blade.php 0000644 00000001711 15107326731 0014454 0 ustar 00 <div class="js-cookie-consent cookie-consent fixed bottom-0 inset-x-0 pb-2"> <div class="max-w-7xl mx-auto px-6"> <div class="p-2 rounded-lg bg-yellow-100"> <div class="flex items-center justify-between flex-wrap"> <div class="w-0 flex-1 items-center hidden md:inline"> <p class="ml-3 text-black cookie-consent__message"> {!! trans('cookie-consent::texts.message') !!} </p> </div> <div class="mt-2 flex-shrink-0 w-full sm:mt-0 sm:w-auto"> <button class="js-cookie-consent-agree cookie-consent__agree cursor-pointer flex items-center justify-center px-4 py-2 rounded-md text-sm font-medium text-yellow-800 bg-yellow-400 hover:bg-yellow-300"> {{ trans('cookie-consent::texts.agree') }} </button> </div> </div> </div> </div> </div> composer.json 0000644 00000003235 15107326731 0007276 0 ustar 00 { "name": "spatie/cookie-consent", "description": "Make your Laravel app comply with the crazy EU cookie law", "keywords": [ "spatie", "cookie-consent", "cookie", "comply", "law", "eu" ], "homepage": "https://github.com/spatie/cookie-consent", "license": "MIT", "authors": [ { "name": "Freek Van der Herten", "email": "freek@spatie.be", "homepage": "https://spatie.be", "role": "Developer" }, { "name": "Willem Van Bockstal", "email": "willem@spatie.be", "homepage": "https://spatie.be", "role": "Developer" } ], "require": { "php": "^8.0", "illuminate/support": "^8.0|^9.0|^10.0", "illuminate/view": "^8.0|^9.0|^10.0", "illuminate/cookie": "^8.0|^9.0|^10.0", "spatie/laravel-package-tools": "^1.9" }, "require-dev": { "fakerphp/faker": "^1.9", "orchestra/testbench": "^6.0|^7.0|^8.0", "pestphp/pest": "^1.22" }, "autoload": { "psr-4": { "Spatie\\CookieConsent\\": "src" } }, "autoload-dev": { "psr-4": { "Spatie\\CookieConsent\\Test\\": "tests" } }, "scripts": { "test": "vendor/bin/pest" }, "extra": { "laravel": { "providers": [ "Spatie\\CookieConsent\\CookieConsentServiceProvider" ] } }, "prefer-stable": true, "minimum-stability": "dev", "config": { "allow-plugins": { "pestphp/pest-plugin": true } } } LICENSE.md 0000644 00000002102 15107326732 0006151 0 ustar 00 The MIT License (MIT) Copyright (c) Spatie bvba <info@spatie.be> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. .editorconfig 0000644 00000000470 15107326732 0007230 0 ustar 00 ; This file is for unifying the coding style for different editors and IDEs. ; More information at http://editorconfig.org root = true [*] charset = utf-8 indent_size = 4 indent_style = space end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false config/cookie-consent.php 0000644 00000000656 15107326732 0011457 0 ustar 00 <?php return [ /* * Use this setting to enable the cookie consent dialog. */ 'enabled' => env('COOKIE_CONSENT_ENABLED', true), /* * The name of the cookie in which we store if the user * has agreed to accept the conditions. */ 'cookie_name' => 'laravel_cookie_consent', /* * Set the cookie duration in days. Default is 365 * 20. */ 'cookie_lifetime' => 365 * 20, ]; CHANGELOG.md 0000644 00000011565 15107326732 0006373 0 ustar 00 # Changelog All notable changes to `cookie-consent` will be documented in this file ## 3.2.3 - 2023-01-16 ### What's Changed - Add PHP 8.2 Support by @patinthehat in https://github.com/spatie/laravel-cookie-consent/pull/185 - Convert all tests to pest by @alexmanase in https://github.com/spatie/laravel-cookie-consent/pull/186 - feat(locale): add pt_BR (Brazilian Portuguese) by @mateuslecchi in https://github.com/spatie/laravel-cookie-consent/pull/184 ### New Contributors - @alexmanase made their first contribution in https://github.com/spatie/laravel-cookie-consent/pull/186 - @mateuslecchi made their first contribution in https://github.com/spatie/laravel-cookie-consent/pull/184 **Full Changelog**: https://github.com/spatie/laravel-cookie-consent/compare/3.2.2...3.2.3 ## 3.2.2 - 2022-06-03 ### What's Changed - ✨ feat(locale): add `th` locale(Thailand language) by @izcream in https://github.com/spatie/laravel-cookie-consent/pull/181 ### New Contributors - @izcream made their first contribution in https://github.com/spatie/laravel-cookie-consent/pull/181 **Full Changelog**: https://github.com/spatie/laravel-cookie-consent/compare/3.2.1...3.2.2 ## 3.2.1 - 2022-04-22 ## What's Changed - add note about cookie domain to docs by @blite in https://github.com/spatie/laravel-cookie-consent/pull/180 - Add contrast on text, anchor -> button by @blite in https://github.com/spatie/laravel-cookie-consent/pull/179 ## New Contributors - @blite made their first contribution in https://github.com/spatie/laravel-cookie-consent/pull/180 **Full Changelog**: https://github.com/spatie/laravel-cookie-consent/compare/3.2.0...3.2.1 ## 3.2.0 - 2022-01-14 - support Laravel 9 ## 3.1.2 - 2021-08-19 - fix translation ## 3.1.1 - 2021-05-28 - added bengali translation (#160) ## 3.1.0 - 2021-05-27 - use TailwindCSS styling by default (#158) ## 3.0.1 - 2021-05-06 - update norwegian ## 3.0.0 - 2021-03-26 - require PHP 8.0+ - drop support for PHP 7.x - convert syntax to PHP 8 where appropriate - implement spatie/laravel-package-tools ## 2.12.13 - 2021-02-26 - add Vietnamese ## 2.12.12 - 2021-01-29 - add Macedonian translation (#139) ## 2.12.11 - 2020-12-11 - add Bulgarian translation (#137) ## 2.12.10 - 2020-11-28 - add support for PHP 8 ## 2.12.9 - 2020-09-09 - Support Laravel 8 ## 2.12.8 - 2020-08-24 - add Indonesia translation (#127) ## 2.12.7 - 2020-08-24 - fix arabic ## 2.12.6 - 2020-08-24 - add arabic ## 2.12.5 - 2020-06-08 - use `session.same_site` to set the Cookie's `SameSite` attribute (#119) ## 2.12.4 - 2020-05-13 - add romanian ## 2.12.3 - 2020-04-27 - add italian (#114) ## 2.12.2 - 2020-04-15 - add korean translations ## 2.12.1 - 2020-03-30 - add esperanto translations ## 2.12.0 - 2020-03-03 - add support for Laravel 7 ## 2.11.0 - 2019-12-14 - add Danish texts ## 2.10.0 - 2019-10-02 - add Czech translation (#102) ## 2.9.0 - 2019-09-04 - make compatible with Laravel 6 ## 2.8.0 - 2019-03-29 - add support for subdomain cookies ## 2.7.0 - 2019-02-27 - drop support for PHP 7.1 ## 2.6.3 - 2019-02-27 - add support for Laravel 5.8 - drop support for PHP 7.0 ## 2.6.2 - 2019-02-06 - add hungarian translations ## 2.6.1 - 2019-01-14 - do not use middleware when the package is disabled ## 2.6.0 - 2018-12-29 - add norwegian translations ## 2.5.0 - 2018-06-22 - add polish translations ## 2.4.1 - 2018-08-28 - add support for Laravel 5.7 - use `const` and `let` instead of `var` ## 2.4.0 - 2018-06-22 - add turkish translations ## 2.3.0 - 2018-06-09 - add estonian and russian translation ## 2.2.2 - 2018-02-28 - add `cookie_lifetime` to config ## 2.2.1 - 2018-02-08 - add support for Laravel 5.6 ## 2.2.0 - 2018-02-08 - add Slovak translation ## 2.1.0 - 2017-10-24 - add Greek translation ## 2.0.0 - 2017-08-30 - add support for Laravel 5.5, drop support for older versions of the framework. - rename config file from `laravel-cookie-consent` to `cookie-consent`. ## 1.9.0 - 2017-08-22 - add support for secure cookies ## 1.8.0 - 2017-01-24 - add support for Laravel 5.4 ## 1.7.0 - 2016-11-07 - add Dutch translation ## 1.6.1 - 2016-10-30 - hide dialog when using back button and consent was already given ## 1.6.0 - 2016-10-11 - added French translation ## 1.5.0 - 2016-10-06 - added Swedish translation ## 1.4.1 - 2016-09-23 - fixed support for PHP 5.6 ## 1.4.0 - 2016-09-23 ** this version does not work on PHP 5.6 ** - added `Spatie\CookieConsent\CookieConsentMiddleware` ## 1.3.0 - 2016-09-07 - added Spanish translation ## 1.2.3 - 2016-08-23 - add L5.3 compatiblity ## 1.2.2 - 2016-07-13 - do not display the cookie warning when accepting cookies on a subpage ## 1.2.1 - 2016-07-04 - fix publishing path for views and translations ## 1.2.0 - 2016-07-01 - added Portuguese translation ## 1.1.0 - 2016-06-30 - added German translation ## 1.0.1 - 2016-06-28 - fixed typos in config file ## 1.0.0 - 2016-06-28 - initial release .github/FUNDING.yml 0000644 00000000061 15107326733 0007725 0 ustar 00 custom: https://spatie.be/open-source/support-us .github/workflows/run-tests.yml 0000644 00000003172 15107326733 0012642 0 ustar 00 name: run-tests on: [push, pull_request] jobs: test: runs-on: ubuntu-latest strategy: matrix: php: [8.2, 8.1, 8.0] laravel: [9.*, 8.*, 10.*] dependency-version: [prefer-lowest, prefer-stable] include: - laravel: 10.* testbench: 8.* carbon: ^2.63 - laravel: 9.* testbench: 7.* carbon: ^2.63 - laravel: 8.* testbench: ^6.23 carbon: ^2.63 exclude: - laravel: 10.* php: 8.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql coverage: none - name: Install dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests run: vendor/bin/pest .github/workflows/update-changelog.yml 0000644 00000001205 15107326733 0014100 0 ustar 00 name: "Update Changelog" on: release: types: [released] jobs: update: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: ref: main - name: Update Changelog uses: stefanzweifel/changelog-updater-action@v1 with: latest-version: ${{ github.event.release.name }} release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG uses: stefanzweifel/git-auto-commit-action@v4 with: branch: main commit_message: Update CHANGELOG file_pattern: CHANGELOG.md .github/workflows/php-cs-fixer.yml 0000644 00000001575 15107326734 0013211 0 ustar 00 name: Check & fix styling on: [push] jobs: style: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Fix style uses: docker://oskarstark/php-cs-fixer-ga with: args: --config=.php-cs-fixer.dist.php --allow-risky=yes - name: Extract branch name shell: bash run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" id: extract_branch - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v2.3.0 with: commit_message: Fix styling branch: ${{ steps.extract_branch.outputs.branch }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Simpan