Name | Date 2024 | Date previous | Region | City, Country | # Attendees |
---|---|---|---|---|---|
PHP Benelux | Jan 24-25, 2020 | Europe | Antwerp, Belgium | 450 | |
Fosdem | Feb 3-4 | Europe | Brussels, Belgium | ||
Laracon EU | Feb 5-6 | Europe | Amsterdam, Netherlands | 800 | |
SunshinePHP | February 6-8, 2020 | North America | Miami, US | 350 | |
Laravel Japan | February 6, 2019 | Asia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1 | |
FROM bitnami/php-fpm | |
RUN apt-get update && apt-get install -y \ | |
autoconf \ | |
build-essential \ | |
wget | |
RUN cd /root \ | |
&& wget https://pecl.php.net/get/redis-5.3.7.tgz \ | |
&& tar xzf redis-5.3.7.tgz && cd redis-5.3.7 \ | |
&& phpize \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
use WebPConvert\WebPConvert; | |
set_time_limit(0); | |
chdir(dirname(__DIR__)); // one level up to project root | |
// check requirements | |
if (! is_file('vendor/autoload.php')) { | |
echo "File vendor/autoload.php not found. Is the path correct?"; | |
exit(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WordPress opcache preloading. | |
* Requires PHP >= 7.4. | |
* | |
* @author Konrad Fedorczyk <[email protected]> | |
* @link https://stitcher.io/blog/preloading-in-php-74 | |
* | |
* @version 1.0.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare( strict_types=1 ); | |
$wp_dir = '/application/www/wp/'; | |
$preload_patterns = [ | |
$wp_dir . "wp-includes/Text/Diff/Renderer.php", | |
$wp_dir . "wp-includes/Text/Diff/Renderer/inline.php", | |
$wp_dir . "wp-includes/SimplePie/**/*.php", | |
$wp_dir . "wp-includes/SimplePie/*.php", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class GeneratorCollection, allows for lazy loaded arrays using Generators withouth it's limitations. | |
* | |
* This collection class takes Generator as argument, and allows user to threat it like any kind of array. It will take | |
* care about storing the values returned from generator so user can iterate over it several times. | |
* | |
* NOTE: In current form only works with generators that uses integers as keys (lists). | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
p.ID as order_id, | |
p.post_date, | |
max( CASE WHEN pm.meta_key = '_billing_email' and p.ID = pm.post_id THEN pm.meta_value END ) as billing_email, | |
max( CASE WHEN pm.meta_key = '_billing_first_name' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_first_name, | |
max( CASE WHEN pm.meta_key = '_billing_last_name' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_last_name, | |
max( CASE WHEN pm.meta_key = '_billing_address_1' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_address_1, | |
max( CASE WHEN pm.meta_key = '_billing_address_2' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_address_2, | |
max( CASE WHEN pm.meta_key = '_billing_city' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_city, | |
max( CASE WHEN pm.meta_key = '_billing_state' and p.ID = pm.post_id THEN pm.meta_value END ) as _billing_state, |
NewerOlder