Skip to content

Commit 02352cd

Browse files
committed
Merge branch 'master' into feature/magento-2-logical-cursor-for-long-filter
2 parents 8d9be30 + 00c7636 commit 02352cd

File tree

125 files changed

+10148
-635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+10148
-635
lines changed

config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,17 @@ hasChildren = true
216216
url = "connectivity/zoho"
217217
weight = 15
218218

219+
[[menu.main]]
220+
weight = 4
221+
name = "Cloud"
222+
hasChildren = true
223+
224+
[[menu.main]]
225+
parent = "Cloud"
226+
name = "Usage"
227+
url = "cloud/usage"
228+
weight = 1
229+
219230
[params]
220231
logo = "logo-web.svg"
221232
logo_white = "logo-web.svg"

content/cloud/usage/_index.en.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: "Usage"
3+
date: 2024-01-12T14:52:40+01:00
4+
draft: true
5+
---
6+
7+
Gyroscops also allows you to have your satellites stored in the cloud.
8+
9+
Thanks to the cloud executable provided by the package `php-etl/satellite`,
10+
you can manage your satellites quickly and easily thanks to command lines.
11+
12+
## Requirements
13+
14+
Before you start, make sure you have installed the utility in your project.
15+
16+
If you haven't already done so, simply run this command:
17+
18+
```shell
19+
composer require php-etl/satellite:'*'
20+
```
21+
22+
## Log into the API
23+
24+
The `login` command is used to establish a connection with the Gyroscops API, allowing access to the various functionalities.
25+
Before executing this command, make sure you have the necessary identification information to hand.
26+
27+
```shell
28+
bin/cloud login
29+
```
30+
31+
> The service may ask you to select your organization and your workspace.
32+
33+
### Options
34+
- `-u`, `--url`: Base URL of the cloud instance [default: "https://app.gyroscops.com"]
35+
- `--beta`: Shortcut to set the cloud instance to https://beta.gyroscops.com
36+
- `--ssl`|`--no-ssl`: Enable or disable SSL
37+
- `--help`: Display help for the given command
38+
39+
See the following sections of this documentation for details of the various commands.
40+
41+
## Create your satellite
42+
43+
The `create` command is used to create a satellite associated with your account.
44+
45+
```shell
46+
php bin/cloud create <path/to/satellite.yaml>
47+
```
48+
49+
### Options
50+
- `-u`, `--url`: Base URL of the cloud instance [default: "https://app.gyroscops.com"]
51+
- `--beta`: Shortcut to set the cloud instance to https://beta.gyroscops.com
52+
- `--ssl`|`--no-ssl`: Enable or disable SSL
53+
- `--help`: Display help for the given command
54+
55+
Once you have created your satellite, you can access its configuration from the interface by following these steps:
56+
57+
- Enter the following URL in the address bar: https://app.gyroscops.com (or https://beta.gyroscops.com)
58+
- Log in with your credentials
59+
60+
## Update your satellite
61+
62+
The `update` command is used to update a given satellite.
63+
64+
```shell
65+
php bin/cloud update <path/to/satellite.yaml>
66+
```
67+
68+
### Options
69+
- `-u`, `--url`: Base URL of the cloud instance [default: "https://app.gyroscops.com"]
70+
- `--beta`: Shortcut to set the cloud instance to https://beta.gyroscops.com
71+
- `--ssl`|`--no-ssl`: Enable or disable SSL
72+
- `--help`: Display help for the given command
73+
74+
## Remove your satellite
75+
76+
The `remove` command is used to remove a given satellite.
77+
78+
```shell
79+
php bin/cloud remove <path/to/satellite.yaml>
80+
```
81+
82+
### Options
83+
- `-u`, `--url`: Base URL of the cloud instance [default: "https://app.gyroscops.com"]
84+
- `--beta`: Shortcut to set the cloud instance to https://beta.gyroscops.com
85+
- `--ssl`|`--no-ssl`: Enable or disable SSL
86+
- `--help`: Display help for the given command
87+
88+
## Other commands
89+
90+
In addition to the main commands we have already explored, this command line utility offers a number of additional features.
91+
These commands can be useful in a variety of situations.
92+
93+
For a list of these commands, use the following command:
94+
95+
```shell
96+
bin/cloud list
97+
```

content/connectivity/akeneo/_index.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ description: "Connect your Akeneo PIM through pipelines"
88
weight: 1
99
---
1010

11-
The packages listed below aims at the integration of [Akeneo PIM](https://www.akeneo.com) into the [ETL Pipeline](../../core-concept/pipeline)
11+
The packages listed below aims at the integration of [Akeneo PIM](https://www.akeneo.com) into the [ETL Pipeline](../../core-concept/satellite/pipeline)
1212
and [Satellite](../../core-concept/satellite) stacks.
1313

1414
The tools built for Akeneo is composed of ETL capacities and data processing functions to be used in
1515
[Fast Map](../fast-map).
1616

1717
### The Akeneo plugin for ETL Pipeline
1818

19-
This plugin will enable Akeneo connectivity to the [ETL Pipeline](../../core-concept/pipeline), in order to
19+
This plugin will enable Akeneo connectivity to the [ETL Pipeline](../../core-concept/satellite/pipeline), in order to
2020
read and write from and to Akeneo PIM. This integration is compatible with both
2121
[Akeneo Enterprise Edition client](https://github.com/akeneo/api-php-client-ee)
2222
and the [Akeneo Community Edition client](https://github.com/akeneo/api-php-client).

content/connectivity/akeneo/plugin.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ and the [Akeneo Community Edition client](https://github.com/akeneo/api-php-clie
3333
## Installation
3434

3535
```shell
36-
composer require php-etl/akeneo-plugin
36+
composer require php-etl/akeneo-plugin:'*'
3737
```
3838

3939
## Usage

content/connectivity/csv/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ stack.
2929
## Installation
3030

3131
```shell
32-
composer require php-etl/csv-plugin
32+
composer require php-etl/csv-plugin:'*'
3333
```
3434

3535
## Usage

content/connectivity/custom/_index.en.md

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ description: "Read transform and write files in any format"
88
weight: 3
99
---
1010

11-
- [What is it ?](#what-is-it-)
11+
- [What is it ?](#definition)
1212
- [Installation](#installation)
1313
- [Usage](#usage)
1414
- [Building an extractor](#building-an-extractor)
1515
- [Building a transformer](#building-a-transformer)
1616
- [Building a loader](#building-a-loader)
17+
- [Usage examples](#usage-examples)
18+
- [Example of an extractor](#example-of-an-extractor)
19+
- [Example of a transformer](#example-of-a-transformer)
20+
- [Example of a loader](#example-of-a-loader)
1721
---
1822

1923
## Definition
@@ -29,47 +33,58 @@ This plugin is already integrated into the Satellite package, so you can’t req
2933

3034
Unlike other plugins, the configuration is the same whether it is an extractor, a transformer or a loader.
3135

32-
First you need to [determine your services](../../feature/services) in your pipeline or workflow and then use the `use`
33-
option which allows you to define which service to use.
34-
3536
### Building an extractor
3637

38+
In the example given, we explain how to configure a custom extractor with the `Bar` class located in the `App\Class` namespace.
39+
40+
Here's a more detailed explanation:
41+
3742
```yaml
3843
custom:
3944
extractor:
40-
use: 'App\Class\Bar'
45+
use: 'App\Class\Bar' # This line specifies the extractor class you want to use.
4146
services:
42-
App\Class\Bar:
43-
arguments:
44-
- '@foo'
45-
tags:
46-
- { example }
47+
App\Class\Bar: ~ # Here, we declare the service associated with the Bar class with the syntax App\Class\Bar: ~. This simply indicates that we want to use the default parameters for this service.
4748
```
4849
50+
For more details about service configurations, please visit the [declaring-services](../../feature/services) documentation.
51+
4952
### Building a transformer
5053
54+
In the example given, we explain how to configure a custom extractor with the `Bar` class located in the `App\Class` namespace.
55+
56+
Here's a more detailed explanation:
57+
5158
```yaml
5259
custom:
5360
transformer:
54-
use: 'App\Class\Bar'
61+
use: 'App\Class\Bar' # This line specifies the extractor class you want to use.
5562
services:
56-
App\Class\Bar:
57-
arguments:
58-
- '@foo'
59-
tags:
60-
- { example }
63+
App\Class\Bar: # Here, we declare the service associated with the Bar class.
64+
factory: # This section indicates that the service must be created by calling the extract method of the App\Class\Bar class.
65+
class: App\Class\Bar
66+
method: extract
67+
arguments: # The arguments to be passed to the extract method. In this example, the @foo symbol indicates that the foo service should be injected as an argument. Make sure that the foo service is configured correctly elsewhere in your pipeline.
68+
- '@foo'
69+
foo: ~
6170
```
6271

72+
For more details about service configurations, please visit the [declaring-services](../../feature/services) documentation.
73+
6374
### Building a loader
6475

76+
In the example given, we explain how to configure a custom extractor with the `Bar` class located in the `App\Class` namespace.
77+
78+
Here's a more detailed explanation:
79+
6580
```yaml
6681
custom:
6782
loader:
68-
use: 'App\Class\Bar'
83+
use: 'App\Class\Bar' # This line specifies the extractor class you want to use.
6984
services:
70-
App\Class\Bar:
71-
arguments:
72-
- '@foo'
73-
tags:
74-
- { example }
85+
App\Class\Bar: # Here, we declare the service associated with the Bar class.
86+
calls: # This section indicates that specific method calls must be made to the service instance.
87+
- withUsername: [ 'admin' ] # This means that a method call named withUsername must be made to the instance of the Bar class, with the username "admin" passed as an argument.
7588
```
89+
90+
For more details about service configurations, please visit the [declaring-services](../../feature/services) documentation.

content/connectivity/fast-map/_index.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This code will then be converted into a machine code that can be used by the fas
5656
## Installation
5757

5858
```shell
59-
composer require php-etl/fast-map-plugin
59+
composer require php-etl/fast-map-plugin:'*'
6060
```
6161

6262
## Usage
@@ -221,4 +221,4 @@ fastmap:
221221
append: true
222222
object:
223223
# ...
224-
```
224+
```

content/connectivity/json/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ stack.
3232
In a Satellite project, add the JSON plugin this way:
3333

3434
```shell
35-
composer require php-etl/json-plugin
35+
composer require php-etl/json-plugin:'*'
3636
```
3737

3838
## Usage

content/connectivity/magento-2/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This package includes classes to extract data from Magento, using a [custom conn
2323
## Installation
2424

2525
```shell
26-
composer require "php-etl/magento2-flow:*"
26+
composer require php-etl/magento2-flow:'*'
2727
```
2828

2929
This package includes classes and code that you will be able to use in your custom connector.

content/connectivity/prestashop/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Currently, the following resources are supported by the plugin: `categories`, `c
2828
## Installation
2929

3030
```shell
31-
composer require "php-etl/prestashop-plugin:*"
31+
composer require php-etl/prestashop-plugin:'*'
3232
```
3333

3434
## Usage

0 commit comments

Comments
 (0)