PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
| <?php | |
| date_default_timezone_set('Africa/Nairobi'); | |
| // set up db connection | |
| include("connection.php") | |
| $TenantTransactionId = $_GET["TransactionType"]; | |
| $SESSIONID = $_GET["SESSIONID"]; | |
| $SERVICECODE = $_GET["SERVICECODE"]; | |
| $ApplicationID = $_GET["ApplicationID"]; | |
| $USSD_string = $_GET["USSD_string"]; |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| version: "2" | |
| services: | |
| web: | |
| image: karllhughes/php-fpm-mysql:latest | |
| restart: always | |
| links: | |
| - database | |
| - redis | |
| env_file: |
| <?php | |
| /** | |
| * Plugin Name: Filter WooCommerce Orders by Payment Method | |
| * Plugin URI: http://skyverge.com/ | |
| * Description: Filters WooCommerce orders by the payment method used :) | |
| * Author: SkyVerge | |
| * Author URI: http://www.skyverge.com/ | |
| * Version: 1.0.0 | |
| * Text Domain: wc-filter-orders-by-payment | |
| * |
| <?php | |
| $ussdRequest = json_decode(@file_get_contents('php://input')); | |
| $ussdResponse = new stdclass; | |
| if ($ussdRequest != NULL) | |
| switch ($ussdRequest->Type) { | |
| case 'Initiation': | |
| $ussdResponse->Message = |
| <?php | |
| $ussdRequest = json_decode(@file_get_contents('php://input')); | |
| if($ussdRequest != NULL); | |
| $ussdResponse = new stdClass; | |
| switch($ussdRequest->Type){ | |
| case "Initiation": |
| mime { | |
| .atom application/atom+xml | |
| .json application/json | |
| .map application/json | |
| .topojson application/json | |
| .jsonld application/ld+json | |
| .rss application/rss+xml | |
| .geojson application/vnd.geo+json | |
| .rdf application/xml | |
| .xml application/xml |
| <?php | |
| /* Simple sample USSD registration application | |
| * USSD gateway that is being used is Africa's Talking USSD gateway | |
| */ | |
| // Print the response as plain text so that the gateway can read it | |
| header('Content-type: text/plain'); | |
| /* local db configuration */ | |
| $dsn = 'mysql:dbname=dbname;host=127.0.0.1;'; //database name |
PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.