ACME DevTool
A package intended for usage during development
--- | |
- name: Download/Update php-version-pickup | |
git: | |
repo: https://github.com/webit-de/php-version-pickup.git | |
dest: /home/{{ username }}/.php-version-pickup | |
clone: yes | |
update: yes | |
- name: Source script |
{ | |
"name": "pixelbrackes/php-version-pickup", | |
"description": "Set a PHP version used in a shell session through a `.php-version` file", | |
"type": "project", | |
"license": "GPL-2.0-or-later" | |
} |
#!/usr/bin/env php | |
<?php | |
echo 'Password: ' . PHP_EOL; | |
fscanf(STDIN, '%s', $password); | |
$passwordHash = password_hash($password, PASSWORD_ARGON2I); | |
echo 'Hash: ' . PHP_EOL; | |
echo $passwordHash . PHP_EOL; | |
$result = password_verify($password, $passwordHash); |
Using the PPA ondrej/php it is possible to run multiple PHP version on one system.
All single versions are useable on the CLI, e.g. php7.4 --version
. The command php
will point to the default version.
For a single project:
composer config github-oauth.github.com
or composer config gitlab-token.gitlab.com
Valid till: <span class="datetime" data-datetime="2017-02-21 17:00">2017-02-21 17:00 (GMT)</span> | |
<script> | |
// Given: Date and time in UTC timezone and international format | |
// Returned: Date and time in local timezone and international format | |
// Note: Returning localised date formats is not possible in JavaScript | |
// without the help of a library like moment.js! | |
// Extend date object with format method |
<?php | |
// composer require guzzlehttp/guzzle | |
require __DIR__ . '/vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
$client = new Client(['timeout' => 2]); | |
$urls = [ |
job1: | |
script: 'echo Hello GitLab CI' |
job_test_app_smoketest: | |
stage: test | |
script: | |
- curl -s --fail --show-error https://example.com/ |