From a3d9d463e4cd6782f7503befabfd58584ad3e002 Mon Sep 17 00:00:00 2001 From: Binal Gajjar Date: Mon, 19 Dec 2022 15:40:39 +0530 Subject: [PATCH 01/19] Update PHP version --- composer.json | 98 +++++++++++++++++++++++++++++---------------------- 1 file changed, 56 insertions(+), 42 deletions(-) diff --git a/composer.json b/composer.json index d2ba5a9..2586f0a 100644 --- a/composer.json +++ b/composer.json @@ -1,45 +1,59 @@ { - "name": "alt-three/segment", - "description": "A Segment bridge for Laravel", - "keywords": ["segment", "bridge", "segment.com", "segment.io", "api", "Alt Three"], - "license": "MIT", - "authors": [ - { - "name": "Alt Three", - "email": "support@alt-three.com" - } - ], - "require": { - "php": "^7.1.3", - "illuminate/config": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "segmentio/analytics-php": "~1.5.2" + "name": "sevenspan/segment-php-sdk", + "description": "A Segment bridge for Laravel", + "keywords": [ + "segment", + "bridge", + "segment.com", + "segment.io", + "api" + ], + "license": "MIT", + "authors": [ + { + "name": "Hemratna Bhimani", + "email": "hemratna.bhimani@gmail.com", + "homepage": "https://github.com/7span/segment-php-sdk", + "role": "Developer" }, - "require-dev": { - "graham-campbell/analyzer": "^2.4 || ^3.0", - "graham-campbell/testbench": "^5.5", - "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0" - }, - "autoload": { - "psr-4": { - "AltThree\\Segment\\": "src/" - } - }, - "autoload-dev": { - "psr-4": { - "AltThree\\Tests\\Segment\\": "tests/" - } - }, - "config": { - "preferred-install": "dist" - }, - "extra": { - "laravel": { - "providers": [ - "AltThree\\Segment\\SegmentServiceProvider" - ] - } - }, - "minimum-stability": "dev", - "prefer-stable": true + { + "name": "Binal Gajjar", + "email": "binal.gajjar7@gmail.com", + "homepage": "https://github.com/7span/segment-php-sdk", + "role": "Developer" + } + ], + "require": { + "php": "^8.1.0", + "illuminate/config": "^5.5 || ^6.0 || ^7.0 || ^8.0", + "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0", + "segmentio/analytics-php": "~1.5.2" + }, + "require-dev": { + "graham-campbell/analyzer": "^2.4 || ^3.0", + "graham-campbell/testbench": "^5.5", + "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0" + }, + "autoload": { + "psr-4": { + "AltThree\\Segment\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "AltThree\\Tests\\Segment\\": "tests/" + } + }, + "config": { + "preferred-install": "dist" + }, + "extra": { + "laravel": { + "providers": [ + "AltThree\\Segment\\SegmentServiceProvider" + ] + } + }, + "minimum-stability": "dev", + "prefer-stable": true } From d480e4d3c7769110cea0cd9a50f77ae14428fc03 Mon Sep 17 00:00:00 2001 From: Binal Gajjar Date: Tue, 20 Dec 2022 14:02:12 +0530 Subject: [PATCH 02/19] Update PHP version to 8.2.0 --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 2586f0a..eaa6449 100644 --- a/composer.json +++ b/composer.json @@ -24,10 +24,10 @@ } ], "require": { - "php": "^8.1.0", - "illuminate/config": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "segmentio/analytics-php": "~1.5.2" + "php": "^8.2.0", + "illuminate/config": "^9.0", + "illuminate/support": "^9.0", + "segmentio/analytics-php": "~3.5.0" }, "require-dev": { "graham-campbell/analyzer": "^2.4 || ^3.0", From bfa2a3542b67a3ccc60b3776e8e01ee5df025bf1 Mon Sep 17 00:00:00 2001 From: Binal Gajjar Date: Thu, 22 Dec 2022 15:35:19 +0530 Subject: [PATCH 03/19] Update read me file and change the namespace --- LICENSE | 2 +- README.md | 27 ++++++--------------------- config/segment.php | 9 --------- src/SegmentServiceProvider.php | 11 +---------- tests/AnalysisTest.php | 11 +---------- tests/ServiceProviderTest.php | 13 ++----------- 6 files changed, 11 insertions(+), 62 deletions(-) diff --git a/LICENSE b/LICENSE index 2c6d3ba..59e5ec5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2020 Alt Three Services Limited +Copyright (c) Spatie bvba Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 6795df0..acf3986 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,16 @@ -![Alt Three Segment](https://user-images.githubusercontent.com/2829600/71490849-0de16e00-2825-11ea-87a6-ddada0f35224.png) - -

-Build Status -StyleCI Status -Software License -Packagist Downloads -Latest Version -

- - ## Installation -Alt Three Segment is a [Segment](https://segment.com/) bridge for Laravel. This version requires [PHP](https://php.net) 7.1-7.4, and supports Laravel 5.5-8. Simply require the package using [Composer](https://getcomposer.org): +SevenSpan Segment is a [Segment](https://segment.com/) bridge for Laravel. This version requires [PHP](https://php.net) 8.2, and supports Laravel 9. Simply require the package using [Composer](https://getcomposer.org): ```bash -$ composer require alt-three/segment:^3.5 +$ composer require sevenspan/segment-php-sdk:^1.0 ``` -Once installed, if you are not using automatic package discovery, then you need to register the `AltThree\Segment\SegmentServiceProvider` service provider in your `config/app.php`. - +Once installed, if you are not using automatic package discovery, then you need to register the `SevenSpan\SegmentPhpSdk\SegmentServiceProvider` service provider in your `config/app.php`. ## Configuration -Alt Three Segment requires configuration. +SevenSpan Segment requires configuration. To get started, you'll need to publish all vendor assets: @@ -32,7 +20,6 @@ $ php artisan vendor:publish This will create a `config/segment.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases. - ## Usage Once you've set your `write_key` value in the configuration, you're ready to go! For the most part you can follow [Segments own instructions](https://segment.com/docs/libraries/php/quickstart) however, you'll want to replace the `Analytics` classname with `Segment` - plus, you don't need to call `class_alias`. @@ -61,12 +48,10 @@ Segment::track([ ]); ``` - ## Security -Our full security policy is available to read [here](https://github.com/AltThree/Segment/security/policy). - +Our full security policy is available to read [here](https://github.com/7span/segment-php-sdk/security/policy). ## License -Alt Three Segment is licensed under [The MIT License (MIT)](LICENSE). +SevenSpan Segment is licensed under [The MIT License (MIT)](LICENSE). diff --git a/config/segment.php b/config/segment.php index 2b48de1..cfb24a3 100644 --- a/config/segment.php +++ b/config/segment.php @@ -2,15 +2,6 @@ declare(strict_types=1); -/* - * This file is part of Alt Three Segment. - * - * (c) Alt Three Services Limited - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - return [ /* diff --git a/src/SegmentServiceProvider.php b/src/SegmentServiceProvider.php index 7adaf00..fcf9358 100644 --- a/src/SegmentServiceProvider.php +++ b/src/SegmentServiceProvider.php @@ -2,16 +2,7 @@ declare(strict_types=1); -/* - * This file is part of Alt Three Segment. - * - * (c) Alt Three Services Limited - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace AltThree\Segment; +namespace SevenSpan\Segment; use Illuminate\Foundation\Application as LaravelApplication; use Illuminate\Support\ServiceProvider; diff --git a/tests/AnalysisTest.php b/tests/AnalysisTest.php index fafe6b1..8fb56f7 100644 --- a/tests/AnalysisTest.php +++ b/tests/AnalysisTest.php @@ -2,16 +2,7 @@ declare(strict_types=1); -/* - * This file is part of Alt Three Segment. - * - * (c) Alt Three Services Limited - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace AltThree\Tests\Segment; +namespace SevenSpan\Tests\Segment; use GrahamCampbell\Analyzer\AnalysisTrait; use Laravel\Lumen\Application; diff --git a/tests/ServiceProviderTest.php b/tests/ServiceProviderTest.php index d01c009..c615681 100644 --- a/tests/ServiceProviderTest.php +++ b/tests/ServiceProviderTest.php @@ -2,18 +2,9 @@ declare(strict_types=1); -/* - * This file is part of Alt Three Segment. - * - * (c) Alt Three Services Limited - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace AltThree\Tests\Segment; +namespace SevenSpan\Tests\Segment; -use AltThree\Segment\SegmentServiceProvider; +use SevenSpan\Segment\SegmentServiceProvider; use GrahamCampbell\TestBench\AbstractPackageTestCase; use GrahamCampbell\TestBenchCore\ServiceProviderTrait; From a0fbbdbff5bba203c2bc182f02d187c0512bc0b5 Mon Sep 17 00:00:00 2001 From: Binal Gajjar Date: Thu, 22 Dec 2022 16:06:02 +0530 Subject: [PATCH 04/19] Update provider in composer --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index eaa6449..bd77c04 100644 --- a/composer.json +++ b/composer.json @@ -36,12 +36,12 @@ }, "autoload": { "psr-4": { - "AltThree\\Segment\\": "src/" + "SevenSpan\\Segment\\": "src/" } }, "autoload-dev": { "psr-4": { - "AltThree\\Tests\\Segment\\": "tests/" + "SevenSpan\\Tests\\Segment\\": "tests/" } }, "config": { @@ -50,7 +50,7 @@ "extra": { "laravel": { "providers": [ - "AltThree\\Segment\\SegmentServiceProvider" + "SevenSpan\\Segment\\SegmentServiceProvider" ] } }, From ebbabffe966533f958cbf70ee4a2fb22818cb91f Mon Sep 17 00:00:00 2001 From: Binal Gajjar Date: Thu, 22 Dec 2022 16:08:11 +0530 Subject: [PATCH 05/19] Remove unwanted code --- .github/CODE_OF_CONDUCT.md | 28 ++++++++++++++-------------- .github/SECURITY.md | 6 ------ phpunit.xml.dist | 2 +- src/SegmentServiceProvider.php | 5 ----- tests/AnalysisTest.php | 5 ----- tests/ServiceProviderTest.php | 5 ----- 6 files changed, 15 insertions(+), 36 deletions(-) diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 72084f8..62c7328 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation. Examples of behavior that contributes to creating a positive environment include: -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members Examples of unacceptable behavior by participants include: -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting +- The use of sexualized language or imagery and unwelcome sexual attention or + advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic + address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting ## Our Responsibilities @@ -55,7 +55,7 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at graham@alt-three.com. All +reported by contacting the project team at yo@7span.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. diff --git a/.github/SECURITY.md b/.github/SECURITY.md index e01aa14..ed898c7 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -12,9 +12,3 @@ If you discover a security vulnerability within this package, please send an email to one the security contacts. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. - -### Security Contacts - -* James Brooks (james@alt-three.com) -* Graham Campbell (graham@alt-three.com) -* Joe Cohen (joe@alt-three.com) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index d7e76d9..0c04166 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -16,7 +16,7 @@ verbose="true" > - + ./tests diff --git a/src/SegmentServiceProvider.php b/src/SegmentServiceProvider.php index fcf9358..e6bab8a 100644 --- a/src/SegmentServiceProvider.php +++ b/src/SegmentServiceProvider.php @@ -9,11 +9,6 @@ use Laravel\Lumen\Application as LumenApplication; use Segment; -/** - * This is the segment service provider class. - * - * @author Graham Campbell - */ class SegmentServiceProvider extends ServiceProvider { /** diff --git a/tests/AnalysisTest.php b/tests/AnalysisTest.php index 8fb56f7..882c0b0 100644 --- a/tests/AnalysisTest.php +++ b/tests/AnalysisTest.php @@ -8,11 +8,6 @@ use Laravel\Lumen\Application; use PHPUnit\Framework\TestCase; -/** - * This is the analysis test class. - * - * @author Graham Campbell - */ class AnalysisTest extends TestCase { use AnalysisTrait; diff --git a/tests/ServiceProviderTest.php b/tests/ServiceProviderTest.php index c615681..c158f85 100644 --- a/tests/ServiceProviderTest.php +++ b/tests/ServiceProviderTest.php @@ -8,11 +8,6 @@ use GrahamCampbell\TestBench\AbstractPackageTestCase; use GrahamCampbell\TestBenchCore\ServiceProviderTrait; -/** - * This is the service provider test class. - * - * @author Graham Campbell - */ class ServiceProviderTest extends AbstractPackageTestCase { use ServiceProviderTrait; From eda6b1e3aaa8e2d83e5514e31eca3ac0ac1ba7a6 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Thu, 22 Dec 2022 19:16:38 +0530 Subject: [PATCH 06/19] Path changes --- composer.json | 2 +- src/SegmentServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index bd77c04..b22c50b 100644 --- a/composer.json +++ b/composer.json @@ -50,7 +50,7 @@ "extra": { "laravel": { "providers": [ - "SevenSpan\\Segment\\SegmentServiceProvider" + "SevenSpan\\SegmentPhpSdk\\SegmentServiceProvider" ] } }, diff --git a/src/SegmentServiceProvider.php b/src/SegmentServiceProvider.php index e6bab8a..ef04ff0 100644 --- a/src/SegmentServiceProvider.php +++ b/src/SegmentServiceProvider.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace SevenSpan\Segment; +namespace SevenSpan\SegmentPhpSdk; use Illuminate\Foundation\Application as LaravelApplication; use Illuminate\Support\ServiceProvider; From c3a67184de0b6a172b7d1efbe0894b3d315b226e Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Thu, 22 Dec 2022 19:22:17 +0530 Subject: [PATCH 07/19] Path changes --- composer.json | 8 +++++++- src/SegmentServiceProvider.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b22c50b..6de6d04 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,12 @@ "email": "binal.gajjar7@gmail.com", "homepage": "https://github.com/7span/segment-php-sdk", "role": "Developer" + }, + { + "name": "Kajal Pandya", + "email": "kjlkajal98@gmail.com", + "homepage": "https://github.com/7span/segment-php-sdk", + "role": "Developer" } ], "require": { @@ -50,7 +56,7 @@ "extra": { "laravel": { "providers": [ - "SevenSpan\\SegmentPhpSdk\\SegmentServiceProvider" + "SevenSpan\\Segment\\SegmentServiceProvider" ] } }, diff --git a/src/SegmentServiceProvider.php b/src/SegmentServiceProvider.php index ef04ff0..e6bab8a 100644 --- a/src/SegmentServiceProvider.php +++ b/src/SegmentServiceProvider.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace SevenSpan\SegmentPhpSdk; +namespace SevenSpan\Segment; use Illuminate\Foundation\Application as LaravelApplication; use Illuminate\Support\ServiceProvider; From 2aa34d5b21dfb1b3236afd54c6ccbaa13bd3738c Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Fri, 23 Dec 2022 14:30:49 +0530 Subject: [PATCH 08/19] Trait path changed --- src/SegmentServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SegmentServiceProvider.php b/src/SegmentServiceProvider.php index e6bab8a..eb0819d 100644 --- a/src/SegmentServiceProvider.php +++ b/src/SegmentServiceProvider.php @@ -7,7 +7,7 @@ use Illuminate\Foundation\Application as LaravelApplication; use Illuminate\Support\ServiceProvider; use Laravel\Lumen\Application as LumenApplication; -use Segment; +use Segment\Segment; class SegmentServiceProvider extends ServiceProvider { From a9d08627afe4b28e4d2ddc1ad9894a412127195d Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Fri, 23 Dec 2022 16:01:10 +0530 Subject: [PATCH 09/19] Keywords updated --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 6de6d04..76be42c 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,10 @@ "description": "A Segment bridge for Laravel", "keywords": [ "segment", + "analytics", + "php8.2", + "laravel9", + "data-analytics", "bridge", "segment.com", "segment.io", From 9836f890e84337bf48ab4de31ec6b2a07473c4a7 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Tue, 27 Dec 2022 12:57:27 +0530 Subject: [PATCH 10/19] Php version changes --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 76be42c..bac6d86 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "keywords": [ "segment", "analytics", - "php8.2", + "php8.1", "laravel9", "data-analytics", "bridge", @@ -34,7 +34,7 @@ } ], "require": { - "php": "^8.2.0", + "php": "^8.1.0", "illuminate/config": "^9.0", "illuminate/support": "^9.0", "segmentio/analytics-php": "~3.5.0" From 90c386788539955eb9b23717c68f830705c00078 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Tue, 27 Dec 2022 14:42:47 +0530 Subject: [PATCH 11/19] Composer changes --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index bac6d86..76be42c 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "keywords": [ "segment", "analytics", - "php8.1", + "php8.2", "laravel9", "data-analytics", "bridge", @@ -34,7 +34,7 @@ } ], "require": { - "php": "^8.1.0", + "php": "^8.2.0", "illuminate/config": "^9.0", "illuminate/support": "^9.0", "segmentio/analytics-php": "~3.5.0" From e8cb8618c338f85b8bb61c5803f9ae6308629e17 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Mon, 2 Jan 2023 15:45:24 +0530 Subject: [PATCH 12/19] Provider changes --- src/SegmentServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SegmentServiceProvider.php b/src/SegmentServiceProvider.php index eb0819d..dd10fad 100644 --- a/src/SegmentServiceProvider.php +++ b/src/SegmentServiceProvider.php @@ -16,6 +16,7 @@ class SegmentServiceProvider extends ServiceProvider * * @return void */ + public function boot() { $this->setupConfig(); @@ -32,6 +33,7 @@ public function boot() * * @return void */ + protected function setupConfig() { $source = realpath($raw = __DIR__.'/../config/segment.php') ?: $raw; From eaf336e4ecd41dfdde15c102a03ea36444808b97 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Wed, 11 Jan 2023 16:45:34 +0530 Subject: [PATCH 13/19] Php 8.2 to 8.1 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 76be42c..bac6d86 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "keywords": [ "segment", "analytics", - "php8.2", + "php8.1", "laravel9", "data-analytics", "bridge", @@ -34,7 +34,7 @@ } ], "require": { - "php": "^8.2.0", + "php": "^8.1.0", "illuminate/config": "^9.0", "illuminate/support": "^9.0", "segmentio/analytics-php": "~3.5.0" From 4cf3f3b6c867537f87c090ad37f5f30d196f8da8 Mon Sep 17 00:00:00 2001 From: Trushal Thummarom Date: Tue, 19 Sep 2023 10:54:57 +0530 Subject: [PATCH 14/19] Added laravel 10 support --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index bac6d86..f169da3 100644 --- a/composer.json +++ b/composer.json @@ -35,8 +35,8 @@ ], "require": { "php": "^8.1.0", - "illuminate/config": "^9.0", - "illuminate/support": "^9.0", + "illuminate/config": "^9.0|^10.0", + "illuminate/support": "^9.0|^10.0", "segmentio/analytics-php": "~3.5.0" }, "require-dev": { @@ -66,4 +66,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} +} \ No newline at end of file From e541687232191fbac16ca67209fb775de20ecc62 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Wed, 20 Sep 2023 10:38:13 +0530 Subject: [PATCH 15/19] Package version changes --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f169da3..31b500a 100644 --- a/composer.json +++ b/composer.json @@ -34,10 +34,10 @@ } ], "require": { - "php": "^8.1.0", + "php": "^8.1.0||^8.2", "illuminate/config": "^9.0|^10.0", "illuminate/support": "^9.0|^10.0", - "segmentio/analytics-php": "~3.5.0" + "segmentio/analytics-php": "^3.7.0" }, "require-dev": { "graham-campbell/analyzer": "^2.4 || ^3.0", From 2bd096dddf638c8d08052de9303202893770e799 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Wed, 20 Sep 2023 10:48:39 +0530 Subject: [PATCH 16/19] Package version changes --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 31b500a..4120d51 100644 --- a/composer.json +++ b/composer.json @@ -40,9 +40,9 @@ "segmentio/analytics-php": "^3.7.0" }, "require-dev": { - "graham-campbell/analyzer": "^2.4 || ^3.0", - "graham-campbell/testbench": "^5.5", - "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0" + "graham-campbell/analyzer": "^2.4 || ^3.0 || ^3.1.1", + "graham-campbell/testbench": "^5.5 || ^6.0", + "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0 || ^10.0" }, "autoload": { "psr-4": { From b8b9a2ca2e0763987c9ce317cb658cfe18df2110 Mon Sep 17 00:00:00 2001 From: Kajal Pandya Date: Wed, 20 Sep 2023 11:17:33 +0530 Subject: [PATCH 17/19] Package version changes --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4120d51..cfcb0b6 100644 --- a/composer.json +++ b/composer.json @@ -37,10 +37,10 @@ "php": "^8.1.0||^8.2", "illuminate/config": "^9.0|^10.0", "illuminate/support": "^9.0|^10.0", - "segmentio/analytics-php": "^3.7.0" + "segmentio/analytics-php": "~3.5.0 || ^3.7.0" }, "require-dev": { - "graham-campbell/analyzer": "^2.4 || ^3.0 || ^3.1.1", + "graham-campbell/analyzer": "^2.4 || ^3.0 || ^3.1 || ^4.0", "graham-campbell/testbench": "^5.5 || ^6.0", "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0 || ^10.0" }, From 7f18618f461cc9af57e2aae483c8912ae903b30b Mon Sep 17 00:00:00 2001 From: Kajal Pandya <107455736+kajal-7span@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:51:12 +0530 Subject: [PATCH 18/19] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index acf3986..768110b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Installation -SevenSpan Segment is a [Segment](https://segment.com/) bridge for Laravel. This version requires [PHP](https://php.net) 8.2, and supports Laravel 9. Simply require the package using [Composer](https://getcomposer.org): +SevenSpan Segment is a [Segment](https://segment.com/) bridge for Laravel. This version requires [PHP](https://php.net) 8.2, and supports Laravel 9 and 10. Simply require the package using [Composer](https://getcomposer.org): ```bash $ composer require sevenspan/segment-php-sdk:^1.0 From b748c224fd166766fc22d26839b896e23778d7a4 Mon Sep 17 00:00:00 2001 From: Kajal Pandya <107455736+kajal-7span@users.noreply.github.com> Date: Thu, 28 Mar 2024 12:29:02 +0530 Subject: [PATCH 19/19] L11 upgrades --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index cfcb0b6..e52d2f7 100644 --- a/composer.json +++ b/composer.json @@ -35,14 +35,14 @@ ], "require": { "php": "^8.1.0||^8.2", - "illuminate/config": "^9.0|^10.0", - "illuminate/support": "^9.0|^10.0", - "segmentio/analytics-php": "~3.5.0 || ^3.7.0" + "illuminate/config": "^9.0|^10.0|^11.0", + "illuminate/support": "^9.0|^10.0|^11.0", + "segmentio/analytics-php": "~3.5.0 || ^3.7.0 || ^3.8.0" }, "require-dev": { - "graham-campbell/analyzer": "^2.4 || ^3.0 || ^3.1 || ^4.0", + "graham-campbell/analyzer": "^2.4 || ^3.0 || ^3.1 || ^4.0 || ^4.1", "graham-campbell/testbench": "^5.5 || ^6.0", - "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0 || ^10.0" + "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0 || ^10.0 || ^11.0" }, "autoload": { "psr-4": {