File tree Expand file tree Collapse file tree 3 files changed +35
-3
lines changed Expand file tree Collapse file tree 3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 33
33
restore-keys : |
34
34
${{ runner.os }}-php-${{ matrix.php-version }}-
35
35
36
+ - name : Setup GitHub Token for Composer
37
+ run : composer config --global github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
38
+
39
+ - name : Replace local path with GitHub repository
40
+ run : |
41
+ sed -i 's|"type": "path"|"type": "vcs"|' composer.json
42
+ sed -i 's|"url": "../pivotphp-core"|"url": "https://github.com/${{ github.repository_owner }}/pivotphp-core"|' composer.json
43
+ sed -i 's|"pivotphp/core": "\*@dev"|"pivotphp/core": "dev-main"|' composer.json
44
+
45
+ - name : Debug composer.json
46
+ run : cat composer.json
47
+
36
48
- name : Install dependencies
37
49
run : composer install --prefer-dist --no-progress --no-interaction
38
50
Original file line number Diff line number Diff line change @@ -28,6 +28,26 @@ Robust and well-tested Cycle ORM integration for PivotPHP microframework
28
28
composer require pivotphp/cycle-orm
29
29
```
30
30
31
+ ### Development Setup
32
+
33
+ When developing locally with both pivotphp-core and pivotphp-cycle-orm:
34
+
35
+ 1 . Clone both repositories in the same parent directory:
36
+ ``` bash
37
+ git clone https://github.com/CAFernandes/pivotphp-core.git
38
+ git clone https://github.com/CAFernandes/pivotphp-cycle-orm.git
39
+ ```
40
+
41
+ 2 . Install dependencies:
42
+ ``` bash
43
+ cd pivotphp-cycle-orm
44
+ composer install
45
+ ```
46
+
47
+ The ` composer.json ` is configured to use the local path ` ../pivotphp-core ` for development.
48
+
49
+ ** Note** : The CI/CD pipeline automatically adjusts the composer configuration to use the GitHub repository instead of the local path.
50
+
31
51
## 🔧 Quick Start
32
52
33
53
### 1. Register the Service Provider
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ No `config/app.php`, adicione o provider:
88
88
``` php
89
89
return [
90
90
'providers' => [
91
- Helix \CycleORM\CycleServiceProvider::class,
91
+ PivotPHP \CycleORM\CycleServiceProvider::class,
92
92
],
93
93
];
94
94
```
@@ -230,11 +230,11 @@ $app->run();
230
230
231
231
## Links Úteis
232
232
233
- - [ PivotPHP] ( https://github.com/PivotPHP/helix -core )
233
+ - [ PivotPHP] ( https://github.com/PivotPHP/pivotphp -core )
234
234
- [ Cycle ORM] ( https://cycle-orm.dev/docs/intro/2.x/en )
235
235
- [ Cycle ORM Annotations] ( https://cycle-orm.dev/docs/annotated/2.x/en )
236
236
- [ Cycle ORM Migrations] ( https://cycle-orm.dev/docs/migrations/2.x/en )
237
- - [ Exemplo de projeto PivotPHP + Cycle ORM] ( https://github.com/PivotPHP/helix-core- cycle-orm-extension )
237
+ - [ Exemplo de projeto PivotPHP + Cycle ORM] ( https://github.com/PivotPHP/pivotphp- cycle-orm )
238
238
239
239
---
240
240
You can’t perform that action at this time.
0 commit comments