Skip to content

Instantly share code, notes, and snippets.

@devpang
devpang / WSSoapClient.php
Created April 17, 2018 04:42 — forked from johnkary/WSSoapClient.php
WS-Security for PHP SoapClient
<?php
/**
* Copyright (c) 2007, Roger Veciana
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
@devpang
devpang / install-php-tools.sh
Last active February 28, 2018 10:13
install-php-toos
#!/bin/bash
#To execute it directly: sudo bash <(curl -s https://gist.githubusercontent.com/devpang/732e494aa33f7e493528181d49a771fb/raw/211d1269a19e4fd9864247541377f5c7be7862fc/install-php-tools.sh)
BIN_PATH=/usr/local/bin/
#COMPOSER
sudo curl -LsS https://getcomposer.org/composer.phar -o ${BIN_PATH}composer
sudo chmod a+x ${BIN_PATH}composer
@devpang
devpang / Dockerfile.php-5.5
Created January 25, 2018 09:30 — forked from danielcosta/Dockerfile.php-5.5
Compile memcache on alpine container for PHP 5.5 and 5.6
# php-5.5
FROM daccbr/php:5.5-fpm-alpine
RUN addgroup -g 1000 sumup && adduser -u 1000 -h /home/sumup -H -G sumup -s /bin/false -D sumup
RUN apk --update add openssh-client libtool make grep autoconf gcc libc-dev zlib-dev
RUN cd /tmp \
&& apk --update add cyrus-sasl-dev libmemcached-dev \
&& curl -L --progress-bar -o "php-memcached-2.2.0.tar.gz" "https://github.com/php-memcached-dev/php-memcached/archive/2.2.0.tar.gz" \