Skip to content

Instantly share code, notes, and snippets.

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /opt/homebrew/etc/nginx/ssl/{{host}}.crt;
ssl_certificate_key /opt/homebrew/etc/nginx/ssl/{{host}}.key;
ssl_ciphers HIGH:!aNULL:!MD5;
# listen 80;
server_name {{host}};
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /opt/homebrew/etc/nginx/ssl/{{host}}.crt;
ssl_certificate_key /opt/homebrew/etc/nginx/ssl/{{host}}.key;
ssl_ciphers HIGH:!aNULL:!MD5;
# listen 80;
server_name {{host}};
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /opt/homebrew/etc/nginx/ssl/{{host}}.crt;
ssl_certificate_key /opt/homebrew/etc/nginx/ssl/{{host}}.key;
ssl_ciphers HIGH:!aNULL:!MD5;
# listen 80;
server_name {{host}};
<?php
//Usage
$jomashopEbayItemsRequest = new RequestItemsFromStore();
$jomashopEbayItemsRequest->setStore('jomashop');
$jomashopEbayItems = $jomashopEbayItemsRequest->getAllItems();
$worldOfWatchesEbayItemsRequest = new RequestItemsFromStore();
$jomashopEbayItemsRequest->setStore('woldofwatches');
$worldOfWatchesEbayItems = $jomashopEbayItemsRequest->getAllItems();
<?php
class RequestItemsFromStore {
public function __construct(){
$this->eBayService = new DavidSadler\Services\ShoppingService;
}
public function setStore($store){
$this->storeName = $store;
}
class RequestItemsFromStore {
public function __construct(){
$this->eBayService = new DavidSadler\Services\ShoppingService;
}
public function setStore($store){
$this->storeName = $store;
}