home.social

#guzzle — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #guzzle, aggregated by home.social.

  1. 📙 Mock Guzzle Requests in Functional Tests

    Functional tests won't mock single implementations. But code often interacts with external systems by sending requests, e.g. via Guzzle.

    This blog post explains our solution which is based on Guzzle Docs and Susis Blog post on how to mock Guzzle Client implementation within Unit Tests.

    by @danielsiepmann

    ➡️ daniel-siepmann.de/mock-guzzle

    #TYPO3 #guzzle

  2. Параллельное выполнение запросов PHP SOAP client

    Статья о реализации параллельных SOAP запросов в PHP с использованием кастомного HTTP транспорта и Guzzle promises

    habr.com/ru/articles/955662/

    #soap #concurrency #guzzle #psr

  3. How you can achieve some level of async processing in PHP using Symfony HTTP Client, Guzzle or cURL.

    I published a video on a small refactoring on our own @Tideways codebase to use parallel HTTP requests to reduce time spent talking to a microservice.

    youtube.com/watch?v=ZqgpglmtK5c

    #php #symfony #guzzle #curl

  4. On this day in 2009, history was made when Satoshi Nakamoto added #gravy to the #blockchain. In the decade and a half since, global #gravy enthusiasts can rest assured knowing that the #gravy they #guzzle is authenticated by a trusted source.

  5. If you parse a php array to a json for a request, and you need something like a empty object in json, i.e "authenticationFlowBindingOverrides" => {}; do not forget to declare it in php with "authenticationFlowBindingOverrides" => (object) [], or it ends in json "authenticationFlowBindingOverrides" => []. Your Server will respond with "Cannot parse the JSON" and you: "WTF it's the same" and the server: "BUT I CAN'T UNDERSTAND!", and you "EAT THAT NOW!" and the server "500 internal error".#guzzle

  6. Optimizing HTTP Request Performance in #Laravel Applications 🔄

    🔋 #Octane enables connection reuse across multiple requests by maintaining booted application state

    🔗 Static #Guzzle client implementation reduces connection setup overhead by 90%

    ⚡️ Benchmark results show response time drop from 293ms to 32ms for subsequent API calls

    🛠️ Solution works for both regular requests and #PHP queue workers in production

    💻 Implementation requires minimal code changes using static variable storage

    Learn more: aaronfrancis.com/2024/make-5x-

  7. If this is true, than this is so stupid.... Unless I am missing things.

    Why can't I get the IP address of the server which has responded to my request in #Guzzle ? #PHP

  8. Took the time to package up my #PHP api toolkit, which I've developed in order to more easily create testable integrations against remote APIs. It's really nifty, and supports mocking manifests and response queues. Check it out!
    github.com/nsrosenqvist/php-ap
    #programming #guzzle #mock

  9. the developers of guzzle are the most beautiful kind hearted people on the face of the planet and i will love them until the end of time.

    gaze upon this thing of beauty and weep with joy for all its glory.

    docs.guzzlephp.org/en/latest/t

    let us give thanks and praise ❤️

    #webdev #php #guzzle #IFuckingLoveYou

  10. Weitere Sicherheitslecks in der Guzzle-Bibliothek ermöglichen Angreifern, verwundbare Drupal-Installationen zu kompromittieren. Updates dichten die Lücken ab.
    Update installieren: Drupal-Lücke erlaubt abermals Website-Übernahme
  11. Eine Drittherstellerbibliothek reißt Sicherheitslücken in das CMS Drupal. Die US-amerikanische Cyber-Sicherheitsbehörde CISA rät zur Aktualisierung.
    Content Management System: CISA warnt vor Sicherheitslücke in Drupal
  12. Mit neuen Versionen schließt das Drupal-Projekt eine Sicherheitslücke, durch die Angreifer Kontrolle über ein betroffenes System übernehmen könnten.
    CMS: Angreifer könnten in Drupal Kontrolle übernehmen