@@ -3,10 +3,10 @@ PHP BLAKE3 Extension
33
44BLAKE3 is an improved and faster version of BLAKE2.
55
6- This extension uses the official BLAKE3 C implementation, thus is single-threaded, but still faster than SHA256 or SHA512 on my benchmark on PHP 7.4.
6+ This extension uses the official BLAKE3 C implementation, thus is single-threaded, but still faster than SHA256 or SHA512 on benchmark ( PHP 7.4) .
77
8- Installation
9- ------------
8+ Installation (manual)
9+ ---------------------
1010Clone the repository and compile it:
1111``` sh
1212$ git clone https://github.com/cypherbits/php-blake3.git
@@ -175,4 +175,30 @@ Donate
175175https: //ko-fi.com /cypherbits
176176
177177Monero address:
178- `4BCveGZaPM7FejGkhFyHgtjVXZw52RrYxKs7znZdmnWLfB3xDKAW6SkYZPpNhqBvJA8crE8Tug8y7hx8U9KAmq83PwLtVLe`
178+ `4BCveGZaPM7FejGkhFyHgtjVXZw52RrYxKs7znZdmnWLfB3xDKAW6SkYZPpNhqBvJA8crE8Tug8y7hx8U9KAmq83PwLtVLe`
179+
180+ Packagist & PIE Installation
181+ ----------------------------
182+
183+ This extension ships with a `composer.json` compatible with PIE. Once the repository is published on Packagist (for example as `cypherbits /php-blake3` and tagged, e.g. `v0.1.0`), you can install it with PIE:
184+
185+ ```sh
186+ pie install cypherbits /php-blake3 --enable-blake3
187+ ```
188+
189+ PIE will perform the usual non-Windows extension build steps:
190+
191+ 1. `phpize`
192+ 2. `. /configure --enable-blake3`
193+ 3. `make`
194+ 4. `make install`
195+ 5. Enable the extension via an INI file (for example `extension =blake3 `).
196+
197+ You can still install it manually without PIE using the steps in the " Installation (manual)" section above.
198+
199+ Publishing to Packagist
200+ -----------------------
201+ 1. Create a tag, for example: `git tag v0.1.0 && git push --tags`.
202+ 2. Go to https: //packagist.org /packages /submit and submit `https: //github.com /cypherbits /php-blake3`.
203+ 3. Optionally configure auto-updates for GitHub so new tags are picked up automatically.
204+ 4. Test in a clean project using PIE: `pie install cypherbits /php-blake3 --enable-blake3`.
0 commit comments