profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/saas786/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
saasfreelancer saas786 Pakistan https://www.upwork.com/fl/syedabrara Owner of WordPress Themes shop https://HybopressThemes.com , freelance WordPress Developer, Food Enthusiast and a Proud Pakistani.

conversionxl/hybrid-core 0

Official Hybrid Core WordPress theme framework repository.

saas786/.dotfiles 0

Lewis Flude's dotfiles and dev environment setup script

saas786/10up-toolkit 0

Official 10up asset building toolkit.

saas786/13checklist 0

Check list for web development

saas786/A-Look-at-Popcorn 0

A quick demonstration of Popcorn for Nettuts+

saas786/A7-Simple-Events 0

Adds event post types to your site. Easy to use interface for adding and managing events.

saas786/accentColor 0

A script for retrieving the accent color of any external website

saas786/acf 0

Advanced Custom Fields

saas786/acf-lite 0

Advanced Custom Fields - Lite { for theme development

saas786/Ad-Code-Manager 0

Easily manage the ad codes that need to appear in your templates

issue openedrecurly/recurly-client-php

Is it possible to utilize Guzzle Http Request instead of your custom request?

On my local server (wamp), my recurly requests takes more than few minutes to complete the request. Spent few days tracing the issue, but cant put my finger on what the actual issue could be.

But changing: https://github.com/recurly/recurly-client-php/blob/8c311c0ad6b6f38f1b2886b5d5c39a38242302dc/lib/recurly/http_adapter.php#L45

        $context = stream_context_create(['http' => $options]);
        $result = file_get_contents($url, false, $context);

to

        $guzzle = new \GuzzleHttp\Client();
        $request = new \GuzzleHttp\Psr7\Request($method, $url, $headers);
        $response = $guzzle
            ->send($request, ['body' => $body]);

        $result = $response->getBody()->getContents();

Make it snappier, and

$result contains the json data.

But $http_response_header causes the issue, as with:

        $http_response_header = [
            "HTTP/{$response->getProtocolVersion()} {$response->getStatusCode()} {$response->getReasonPhrase()}"
        ];
        foreach ($request->getHeaders() as $name => $values) {
            $http_response_header[] = $name . ': ' . implode(', ', $values) . "\r\n";
        }

It Emulates the headers, but only returns 7 headers, compared to original codes 18 headers.

Which ultimately fails the rest of the code after : https://github.com/recurly/recurly-client-php/blob/8c311c0ad6b6f38f1b2886b5d5c39a38242302dc/lib/recurly/base_client.php#L97

Is there any fix I can use to make existing code work?

Or can you please utilize Guzzle http? Or make it pluggable?

created time in 8 hours

startedbvanhoekelen/performance

started time in 15 hours

startedhotwired/stimulus

started time in 4 days

startedjelastic-jps/wordpress-cluster

started time in 5 days

startedprisma/prisma

started time in 5 days

startedvitessio/vitess

started time in 5 days

startedcachix/cachix-action

started time in 5 days

startedVincentLoy/simplyCountdown.js

started time in 6 days

startedrenoki-co/laravel-eloquent-query-cache

started time in 6 days

startedarea17/cdn

started time in 6 days

startedjohngodley/redirection

started time in 7 days

startedDopplerHQ/awesome-interview-questions

started time in 8 days

startedDesignPatternsPHP/DesignPatternsPHP

started time in 8 days

startedDovAmir/awesome-design-patterns

started time in 8 days

startedAllThingsSmitty/css-protips

started time in 8 days

startedmarkodenic/web-development-resources

started time in 8 days

startedLeCoupa/awesome-cheatsheets

started time in 8 days

startedrmorse/wp-token-multiselect-control

started time in 9 days

startedrenoki-co/jetstream-cashier-billing-portal

started time in 10 days

startedwp-sync-db/wp-sync-db-cli

started time in 10 days

startedspatie/laravel-morph-map-generator

started time in 11 days

startedJosephSilber/page-cache

started time in 11 days

startedwp-cli/php-cli-tools

started time in 13 days

fork saas786/hybrid-font

Standardized set of helper functions for loading Google Fonts in WordPress themes.

fork in 13 days

startedgruntjs/grunt-cli

started time in 15 days

startedspatie/async

started time in 16 days

startedWICG/scheduling-apis

started time in 17 days

release saas786/cxl-common-lib

v1.0.0

released time in 19 days

created tagsaas786/cxl-common-lib

tagv1.0.0

Primary library, which holds common / shared code for various projects, like Institute & Jobs etc.

created time in 19 days