From 39aa06a6d1f7e4700eb41e22993c17a1e575889b Mon Sep 17 00:00:00 2001 From: Augus Date: Wed, 21 Feb 2024 16:40:17 +0100 Subject: [PATCH 1/3] Add instruction to generate an access token. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9c905ef..e8a3018 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ This package is the official Laravel integration for [Pirsch Analytics](https:// PIRSCH_TOKEN=pa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` +### How to get your access token +1. Go to your [Pirsch Intergration settings](https://dashboard.pirsch.io/settings/integration) page. +2. Make sure that on the top left corner, the correct website/application is selected. +3. Scroll down to the "Clients" section and press the "Add Client" button. +4. In the modal that appears select "Access Key (write-only)" as "Type" and create a proper Description. +5. Press on "Create Client" and copy the generated Client Secret (this is your access token). ## Usage From 957b4a2cd02f785b14d9d0da653f759e41965b0e Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Thu, 29 Feb 2024 09:21:25 +0100 Subject: [PATCH 2/3] Fixing workflow --- .github/workflows/phpstan.yml | 4 +++- .github/workflows/run-tests.yml | 18 +++++++++--------- composer.json | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 557d263..ee82e48 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -5,13 +5,15 @@ on: paths: - '**.php' - 'phpstan.neon.dist' + pull_request: + types: [opened, synchronize, reopened] jobs: phpstan: name: phpstan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 39ff7ee..ae6971f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,9 +2,9 @@ name: run-tests on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + types: [opened, synchronize, reopened] jobs: test: @@ -13,18 +13,18 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.1] - laravel: [9.*] + php: ['8.1', '8.2','8.3'] + laravel: ['9.*','10.*'] stability: [prefer-lowest, prefer-stable] - include: - - laravel: 9.* - testbench: 7.* + exclude: + - laravel: '9.*' + stability: prefer-lowest name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -40,7 +40,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests diff --git a/composer.json b/composer.json index e7881b2..9ea8b68 100644 --- a/composer.json +++ b/composer.json @@ -29,8 +29,8 @@ "require-dev": { "laravel/pint": "^0.2.2", "nunomaduro/collision": "^6.0", - "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^7.0", + "larastan/larastan": "^2.0.1", + "orchestra/testbench": "^7.0|^8.0", "pestphp/pest": "^1.21", "pestphp/pest-plugin-laravel": "^1.1", "phpstan/extension-installer": "^1.1", From 5d03511d62e04f62bc01ecba64dad761896f0158 Mon Sep 17 00:00:00 2001 From: Zep Fietje Date: Tue, 5 Mar 2024 12:46:27 +0100 Subject: [PATCH 3/3] Update installation steps --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e8a3018..3abd03f 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,19 @@ This package is the official Laravel integration for [Pirsch Analytics](https:// composer require pirsch-analytics/laravel-pirsch ``` 2. Add the Pirsch access token to your `.env` file. Leave it empty in non-production environments to disable tracking: - ```bash - # ... - PIRSCH_TOKEN=pa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - ``` -### How to get your access token -1. Go to your [Pirsch Intergration settings](https://dashboard.pirsch.io/settings/integration) page. -2. Make sure that on the top left corner, the correct website/application is selected. -3. Scroll down to the "Clients" section and press the "Add Client" button. -4. In the modal that appears select "Access Key (write-only)" as "Type" and create a proper Description. -5. Press on "Create Client" and copy the generated Client Secret (this is your access token). + 1. Visit the [Pirsch "Integration" settings page](https://dashboard.pirsch.io/settings/integration). + 2. Make sure the correct domain is selected in the top left corner of the page. + 3. Scroll down to the "Clients" section and press the "Add Client" button. + 4. Select "Access Key (write-only)" as type and enter a description. + 5. Press the "Create Client" button and copy the generated "Client secret". + 6. Add the copied token to your `.env` file: + + ```bash + # ... + + PIRSCH_TOKEN=pa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + ``` ## Usage