Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ Changes to public behaviour need a test and a documentation update.
Bug reports, security disclosures, and contribution guidelines are collected at
[ateliersvg.com/support](https://ateliersvg.com/support/).

Atelier is maintained by Simon André. Sharing the package or
[starring it on GitHub](https://github.com/ateliersvg/barcode) helps more than you would think.
Sharing the package or [starring it on GitHub](https://github.com/ateliersvg/barcode) helps more
than you would think.

## License

Expand Down
8 changes: 3 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PHP library that builds QR codes, matrix codes, and barcodes as SVG, PNG, or GIF",
"license": "MIT",
"type": "library",
"homepage": "https://github.com/ateliersvg/barcode",
"homepage": "https://ateliersvg.com/barcode/",
"keywords": [
"qrcode",
"qr-code",
Expand Down Expand Up @@ -36,7 +36,8 @@
"authors": [
{
"name": "Simon André",
"email": "smn.andre@gmail.com"
"email": "smn.andre@gmail.com",
"homepage": "https://smnandre.dev"
}
],
"minimum-stability": "stable",
Expand Down Expand Up @@ -71,17 +72,14 @@
}
},
"scripts": {
"coverage": "vendor/bin/phpunit --coverage-text",
"cs": "vendor/bin/php-cs-fixer fix --dry-run --diff",
"cs:fix": "vendor/bin/php-cs-fixer fix",
"qa": [
"@cs",
"@sa",
"@test"
],
"rector": "vendor/bin/rector process --dry-run",
"sa": "vendor/bin/phpstan analyse --memory-limit=-1",
"showcase": "@php examples/showcase.php",
"test": "vendor/bin/phpunit"
}
}
2 changes: 1 addition & 1 deletion examples/output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ <h1>QR codes, matrix codes, and barcodes as SVG</h1>
-&gt;scale(2)-&gt;height(70)-&gt;render();</code></pre></figcaption></figure><figure class="card"><div class="media"><svg xmlns="http://www.w3.org/2000/svg" width="234" height="88" viewBox="0 0 234 88" shape-rendering="crispEdges"><rect width="234" height="88" fill="#ffffff"/><g fill="#000000"><rect x="22" y="0" width="2" height="79.9"/><rect x="26" y="0" width="2" height="79.9"/><rect x="30" y="0" width="6" height="70"/><rect x="38" y="0" width="4" height="70"/><rect x="48" y="0" width="2" height="70"/><rect x="54" y="0" width="2" height="70"/><rect x="58" y="0" width="2" height="70"/><rect x="64" y="0" width="6" height="70"/><rect x="74" y="0" width="2" height="70"/><rect x="80" y="0" width="4" height="70"/><rect x="86" y="0" width="2" height="70"/><rect x="92" y="0" width="6" height="70"/><rect x="102" y="0" width="4" height="70"/><rect x="110" y="0" width="2" height="70"/><rect x="114" y="0" width="2" height="79.9"/><rect x="118" y="0" width="2" height="79.9"/><rect x="122" y="0" width="2" height="70"/><rect x="132" y="0" width="2" height="70"/><rect x="136" y="0" width="2" height="70"/><rect x="144" y="0" width="2" height="70"/><rect x="150" y="0" width="6" height="70"/><rect x="158" y="0" width="2" height="70"/><rect x="164" y="0" width="2" height="70"/><rect x="168" y="0" width="2" height="70"/><rect x="178" y="0" width="4" height="70"/><rect x="184" y="0" width="4" height="70"/><rect x="192" y="0" width="2" height="70"/><rect x="196" y="0" width="6" height="70"/><rect x="206" y="0" width="2" height="79.9"/><rect x="210" y="0" width="2" height="79.9"/></g><g fill="#000000" font-family="ui-monospace, monospace"><text x="12" y="85.5" font-size="15.3" text-anchor="middle">9</text><text x="35" y="85.5" font-size="15.3" text-anchor="middle">7</text><text x="49" y="85.5" font-size="15.3" text-anchor="middle">8</text><text x="63" y="85.5" font-size="15.3" text-anchor="middle">0</text><text x="77" y="85.5" font-size="15.3" text-anchor="middle">2</text><text x="91" y="85.5" font-size="15.3" text-anchor="middle">0</text><text x="105" y="85.5" font-size="15.3" text-anchor="middle">1</text><text x="129" y="85.5" font-size="15.3" text-anchor="middle">3</text><text x="143" y="85.5" font-size="15.3" text-anchor="middle">7</text><text x="157" y="85.5" font-size="15.3" text-anchor="middle">9</text><text x="171" y="85.5" font-size="15.3" text-anchor="middle">6</text><text x="185" y="85.5" font-size="15.3" text-anchor="middle">2</text><text x="199" y="85.5" font-size="15.3" text-anchor="middle">4</text></g></svg></div><figcaption><span class="label">ISBN-13</span><pre class="snippet"><code>Isbn::create(&#039;978-0-201-37962-4&#039;)
-&gt;scale(2)-&gt;height(70)-&gt;render();</code></pre></figcaption></figure></div></section>
</main>
<footer>Regenerate with <code>composer showcase</code>. Individual SVGs are written alongside this page in <code>examples/output/</code>.</footer>
<footer>Regenerate with <code>php examples/showcase.php</code>. Individual SVGs are written alongside this page in <code>examples/output/</code>.</footer>
</body>
</html>
4 changes: 2 additions & 2 deletions examples/showcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Renders at least two examples per code type and writes a self-contained
* gallery to examples/output/index.html (the showroom).
*
* Run: composer showcase (or: php examples/showcase.php)
* Run: php examples/showcase.php
*/

use Atelier\Barcode\Codabar;
Expand Down Expand Up @@ -302,7 +302,7 @@
<main>
$sections
</main>
<footer>Regenerate with <code>composer showcase</code>. Individual SVGs are written alongside this page in <code>examples/output/</code>.</footer>
<footer>Regenerate with <code>php examples/showcase.php</code>. Individual SVGs are written alongside this page in <code>examples/output/</code>.</footer>
</body>
</html>

Expand Down