Skip to content

Commit 5485c68

Browse files
author
flow-php
committed
1 parent e263c2f commit 5485c68

File tree

148 files changed

+3636
-398
lines changed

Some content is hidden

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

148 files changed

+3636
-398
lines changed

aggregations/average/index.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,37 @@ <h2 class="mb-4 text-2xl font-semibold tracking-wide">Examples:</h2>
320320

321321
<div id="example" class="-mt-36 pt-36">
322322

323-
<h2 class="text-xl mt-5 mb-5">Code</h2><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code" class="language-php" data-controller="syntax-highlight" >&lt;?php
323+
<div class="mb-5">
324+
<a href="https://raw.githubusercontent.com/flow-php/flow/refs/heads/1.x/examples/topics/aggregations/average/flow_php_example.zip" target="_blank" class="btn btn-primary mb-5">
325+
Download
326+
</a>
327+
</div>
328+
329+
<hr class="hidden lg:block"/>
330+
<code>composer.json</code>
331+
<div id="composer" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#composer-json" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy composer-json" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="composer-json" class="language-json" data-controller="syntax-highlight" >{
332+
&quot;name&quot;: &quot;flow-php/examples&quot;,
333+
&quot;description&quot;: &quot;Flow PHP - Examples&quot;,
334+
&quot;license&quot;: &quot;MIT&quot;,
335+
&quot;type&quot;: &quot;library&quot;,
336+
&quot;require&quot;: {
337+
&quot;flow-php/etl&quot;: &quot;1.x-dev&quot;
338+
},
339+
&quot;archive&quot;: {
340+
&quot;exclude&quot;: [
341+
&quot;.env&quot;,
342+
&quot;vendor&quot;
343+
]
344+
}
345+
}
346+
</code></pre></div>
347+
<code>code.php</code><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code-php" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code-php" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code-php" class="language-php" data-controller="syntax-highlight" >&lt;?php
324348

325349
declare(strict_types=1);
326350

327351
use function Flow\ETL\DSL\{average, data_frame, from_rows, int_entry, ref, row, rows, to_stream};
328352

329-
require __DIR__ . &#039;/../../../autoload.php&#039;;
353+
require __DIR__ . &#039;/vendor/autoload.php&#039;;
330354

331355
data_frame()
332356
-&gt;from(from_rows(rows(

aggregations/first/index.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,37 @@ <h2 class="mb-4 text-2xl font-semibold tracking-wide">Examples:</h2>
320320

321321
<div id="example" class="-mt-36 pt-36">
322322

323-
<h2 class="text-xl mt-5 mb-5">Code</h2><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code" class="language-php" data-controller="syntax-highlight" >&lt;?php
323+
<div class="mb-5">
324+
<a href="https://raw.githubusercontent.com/flow-php/flow/refs/heads/1.x/examples/topics/aggregations/first/flow_php_example.zip" target="_blank" class="btn btn-primary mb-5">
325+
Download
326+
</a>
327+
</div>
328+
329+
<hr class="hidden lg:block"/>
330+
<code>composer.json</code>
331+
<div id="composer" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#composer-json" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy composer-json" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="composer-json" class="language-json" data-controller="syntax-highlight" >{
332+
&quot;name&quot;: &quot;flow-php/examples&quot;,
333+
&quot;description&quot;: &quot;Flow PHP - Examples&quot;,
334+
&quot;license&quot;: &quot;MIT&quot;,
335+
&quot;type&quot;: &quot;library&quot;,
336+
&quot;require&quot;: {
337+
&quot;flow-php/etl&quot;: &quot;1.x-dev&quot;
338+
},
339+
&quot;archive&quot;: {
340+
&quot;exclude&quot;: [
341+
&quot;.env&quot;,
342+
&quot;vendor&quot;
343+
]
344+
}
345+
}
346+
</code></pre></div>
347+
<code>code.php</code><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code-php" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code-php" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code-php" class="language-php" data-controller="syntax-highlight" >&lt;?php
324348

325349
declare(strict_types=1);
326350

327351
use function Flow\ETL\DSL\{data_frame, first, from_rows, int_entry, ref, row, rows, to_stream};
328352

329-
require __DIR__ . &#039;/../../../autoload.php&#039;;
353+
require __DIR__ . &#039;/vendor/autoload.php&#039;;
330354

331355
data_frame()
332356
-&gt;from(from_rows(rows(

aggregations/group_by/index.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,37 @@ <h2 class="mb-4 text-2xl font-semibold tracking-wide">Examples:</h2>
320320

321321
<div id="example" class="-mt-36 pt-36">
322322

323-
<h2 class="text-xl mt-5 mb-5">Code</h2><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code" class="language-php" data-controller="syntax-highlight" >&lt;?php
323+
<div class="mb-5">
324+
<a href="https://raw.githubusercontent.com/flow-php/flow/refs/heads/1.x/examples/topics/aggregations/group_by/flow_php_example.zip" target="_blank" class="btn btn-primary mb-5">
325+
Download
326+
</a>
327+
</div>
328+
329+
<hr class="hidden lg:block"/>
330+
<code>composer.json</code>
331+
<div id="composer" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#composer-json" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy composer-json" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="composer-json" class="language-json" data-controller="syntax-highlight" >{
332+
&quot;name&quot;: &quot;flow-php/examples&quot;,
333+
&quot;description&quot;: &quot;Flow PHP - Examples&quot;,
334+
&quot;license&quot;: &quot;MIT&quot;,
335+
&quot;type&quot;: &quot;library&quot;,
336+
&quot;require&quot;: {
337+
&quot;flow-php/etl&quot;: &quot;1.x-dev&quot;
338+
},
339+
&quot;archive&quot;: {
340+
&quot;exclude&quot;: [
341+
&quot;.env&quot;,
342+
&quot;vendor&quot;
343+
]
344+
}
345+
}
346+
</code></pre></div>
347+
<code>code.php</code><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code-php" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code-php" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code-php" class="language-php" data-controller="syntax-highlight" >&lt;?php
324348

325349
declare(strict_types=1);
326350

327351
use function Flow\ETL\DSL\{count, data_frame, from_array, ref, to_stream};
328352

329-
require __DIR__ . &#039;/../../../autoload.php&#039;;
353+
require __DIR__ . &#039;/vendor/autoload.php&#039;;
330354

331355
data_frame()
332356
-&gt;read(from_array([

aggregations/group_by_sum/index.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,37 @@ <h2 class="mb-4 text-2xl font-semibold tracking-wide">Examples:</h2>
320320

321321
<div id="example" class="-mt-36 pt-36">
322322

323-
<h2 class="text-xl mt-5 mb-5">Code</h2><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code" class="language-php" data-controller="syntax-highlight" >&lt;?php
323+
<div class="mb-5">
324+
<a href="https://raw.githubusercontent.com/flow-php/flow/refs/heads/1.x/examples/topics/aggregations/group_by_sum/flow_php_example.zip" target="_blank" class="btn btn-primary mb-5">
325+
Download
326+
</a>
327+
</div>
328+
329+
<hr class="hidden lg:block"/>
330+
<code>composer.json</code>
331+
<div id="composer" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#composer-json" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy composer-json" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="composer-json" class="language-json" data-controller="syntax-highlight" >{
332+
&quot;name&quot;: &quot;flow-php/examples&quot;,
333+
&quot;description&quot;: &quot;Flow PHP - Examples&quot;,
334+
&quot;license&quot;: &quot;MIT&quot;,
335+
&quot;type&quot;: &quot;library&quot;,
336+
&quot;require&quot;: {
337+
&quot;flow-php/etl&quot;: &quot;1.x-dev&quot;
338+
},
339+
&quot;archive&quot;: {
340+
&quot;exclude&quot;: [
341+
&quot;.env&quot;,
342+
&quot;vendor&quot;
343+
]
344+
}
345+
}
346+
</code></pre></div>
347+
<code>code.php</code><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code-php" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code-php" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code-php" class="language-php" data-controller="syntax-highlight" >&lt;?php
324348

325349
declare(strict_types=1);
326350

327351
use function Flow\ETL\DSL\{data_frame, from_array, ref, sum, to_stream};
328352

329-
require __DIR__ . &#039;/../../../autoload.php&#039;;
353+
require __DIR__ . &#039;/vendor/autoload.php&#039;;
330354

331355
data_frame()
332356
-&gt;read(from_array([

aggregations/index.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,37 @@ <h2 class="mb-4 text-2xl font-semibold tracking-wide">Examples:</h2>
320320

321321
<div id="example" class="-mt-36 pt-36">
322322

323-
<h2 class="text-xl mt-5 mb-5">Code</h2><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code" class="language-php" data-controller="syntax-highlight" >&lt;?php
323+
<div class="mb-5">
324+
<a href="https://raw.githubusercontent.com/flow-php/flow/refs/heads/1.x/examples/topics/aggregations/average/flow_php_example.zip" target="_blank" class="btn btn-primary mb-5">
325+
Download
326+
</a>
327+
</div>
328+
329+
<hr class="hidden lg:block"/>
330+
<code>composer.json</code>
331+
<div id="composer" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#composer-json" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy composer-json" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="composer-json" class="language-json" data-controller="syntax-highlight" >{
332+
&quot;name&quot;: &quot;flow-php/examples&quot;,
333+
&quot;description&quot;: &quot;Flow PHP - Examples&quot;,
334+
&quot;license&quot;: &quot;MIT&quot;,
335+
&quot;type&quot;: &quot;library&quot;,
336+
&quot;require&quot;: {
337+
&quot;flow-php/etl&quot;: &quot;1.x-dev&quot;
338+
},
339+
&quot;archive&quot;: {
340+
&quot;exclude&quot;: [
341+
&quot;.env&quot;,
342+
&quot;vendor&quot;
343+
]
344+
}
345+
}
346+
</code></pre></div>
347+
<code>code.php</code><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code-php" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code-php" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code-php" class="language-php" data-controller="syntax-highlight" >&lt;?php
324348

325349
declare(strict_types=1);
326350

327351
use function Flow\ETL\DSL\{average, data_frame, from_rows, int_entry, ref, row, rows, to_stream};
328352

329-
require __DIR__ . &#039;/../../../autoload.php&#039;;
353+
require __DIR__ . &#039;/vendor/autoload.php&#039;;
330354

331355
data_frame()
332356
-&gt;from(from_rows(rows(

aggregations/last/index.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,37 @@ <h2 class="mb-4 text-2xl font-semibold tracking-wide">Examples:</h2>
320320

321321
<div id="example" class="-mt-36 pt-36">
322322

323-
<h2 class="text-xl mt-5 mb-5">Code</h2><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code" class="language-php" data-controller="syntax-highlight" >&lt;?php
323+
<div class="mb-5">
324+
<a href="https://raw.githubusercontent.com/flow-php/flow/refs/heads/1.x/examples/topics/aggregations/last/flow_php_example.zip" target="_blank" class="btn btn-primary mb-5">
325+
Download
326+
</a>
327+
</div>
328+
329+
<hr class="hidden lg:block"/>
330+
<code>composer.json</code>
331+
<div id="composer" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#composer-json" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy composer-json" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="composer-json" class="language-json" data-controller="syntax-highlight" >{
332+
&quot;name&quot;: &quot;flow-php/examples&quot;,
333+
&quot;description&quot;: &quot;Flow PHP - Examples&quot;,
334+
&quot;license&quot;: &quot;MIT&quot;,
335+
&quot;type&quot;: &quot;library&quot;,
336+
&quot;require&quot;: {
337+
&quot;flow-php/etl&quot;: &quot;1.x-dev&quot;
338+
},
339+
&quot;archive&quot;: {
340+
&quot;exclude&quot;: [
341+
&quot;.env&quot;,
342+
&quot;vendor&quot;
343+
]
344+
}
345+
}
346+
</code></pre></div>
347+
<code>code.php</code><div id="code" class="relative"><button class="absolute top-[12px] right-[12px] bg-orange-100 rounded px-4 leading-9 [&.copied]:before:content-['Copied!'] before:absolute before:-translate-x-20" data-clipboard-target="#code-php" data-controller="clipboard"><img src="https://flow-php.com/assets/images/icons/copy-c890d86c179d4c56059b8a0e9c88cd23.svg" alt="copy code-php" width="20" height="20" class="inline"></button><pre class="rounded p-4 overflow-auto shadow-2xl shadow-gray rounded border-gray border-2"><code id="code-php" class="language-php" data-controller="syntax-highlight" >&lt;?php
324348

325349
declare(strict_types=1);
326350

327351
use function Flow\ETL\DSL\{data_frame, from_rows, int_entry, last, ref, row, rows, to_stream};
328352

329-
require __DIR__ . &#039;/../../../autoload.php&#039;;
353+
require __DIR__ . &#039;/vendor/autoload.php&#039;;
330354

331355
data_frame()
332356
-&gt;from(from_rows(rows(

0 commit comments

Comments
 (0)