Skip to content

Alex Rusin Blog

  • BlogExpand
    • AWS
    • Javascript Development
    • Remix
    • PHP MySQL Development
    • Laravel
    • System Administration
    • WordPress Development
    • Magento
    • Uncategorized
  • My Projects
Alex Rusin Blog
  • System Administration

    Too Many Redirects

    Byalexrusin June 10, 2019June 10, 2019

    Sometimes your website may be making more redirects than necessary to account for https and stripping or adding trailing slash.

    Read More Too Many RedirectsContinue

  • Laravel | PHP MySQL Development

    Testing API Clients

    Byalexrusin June 9, 2019June 9, 2019

    Since an API client is a boundary between your code and the outside world you should write as little code as possible to implement it. The client should strictly do its job by sending a request and returning a response. That is why we don’t really test the clients themselves but rather the code that processes the response from the client.

    Read More Testing API ClientsContinue

  • System Administration

    Block IP Addresses in .htaccess behind Load Balancer

    Byalexrusin June 6, 2019June 8, 2019

    Sometimes you need to block access from certain IP addresses to your web site. It is easy to do in .htaccess file if you are running Apache. What if your server is behind a load balancer ? The code below lets you block IP addresses when your server is behind AWS load balancer.

    Read More Block IP Addresses in .htaccess behind Load BalancerContinue

  • Setting up a PHP Application
    PHP MySQL Development

    Setting up a PHP Application

    Byalexrusin May 6, 2019May 6, 2019

    When setting up a new PHP application one should consider how to manage certain housekeeping tasks such as exception handling, logging, and mail notifications.

    Read More Setting up a PHP ApplicationContinue

  • Laravel | PHP MySQL Development

    Laravel WebSockets as a Service

    Byalexrusin December 31, 2018December 31, 2018

    Recently Beyondcode came out with a web sockets package for Laravel.  For my mailroom project I decided to add push notifications when a service receives a webhook.  This a great use case for Laravel WebSockets package.  In this article we will take a look at how to install it as a service using Docker and use…

    Read More Laravel WebSockets as a ServiceContinue

  • PHP MySQL Development

    DB Resource Usage

    Byalexrusin December 19, 2018

    You can use the following query to see who is using your database resources SELECT max(user) as user, count(*) as connections_count, db from information_schema.processlist GROUP BY db order by connections_count desc;

    Read More DB Resource UsageContinue

  • Laravel | PHP MySQL Development

    Testing with Service Container

    Byalexrusin November 18, 2018November 18, 2018

    The backbone of Laravel is service container.  Service container is used for resolving classes and dependency injection.  Container comes as a standalone package, so you don’t have to have Laravel installed to use it.  Service container can be very handy when testing.  Let’s look at how we can use it . Our basic set up…

    Read More Testing with Service ContainerContinue

  • Custom Mail Driver for Laravel
    Laravel | PHP MySQL Development

    Custom Mail Driver for Laravel

    Byalexrusin November 10, 2018November 12, 2018

    Out of the box Laravel supports many mail drivers, such as smtp, sendmail, mailgun, log, array, etc. But what if you wold like to use a mail service that Laravel does not have a driver for, such as Mailjet?  You can create a custom driver for that service.  This article will describe how to create…

    Read More Custom Mail Driver for LaravelContinue

  • Mailroom Tools
    My Projects

    Mailroom Tools

    Byalexrusin September 23, 2018September 23, 2018

    Mailrom Tools (Mailroom server and Mailroom Clerk client) help you develop locally against web hooks, HTTP callbacks from a remote server. To learn how to use the tools read post Debugging Webhooks It is an open source project. You can read documentation and look at the source code on GitHub.

    Read More Mailroom ToolsContinue

  • API Client Design
    PHP MySQL Development

    API Client Design

    Byalexrusin September 22, 2018September 23, 2018

    When you extensively work with certain APIs, like Shopify’s for example, you will end up with bunch of functions that map to API’s endpoints. One of the approaches I have seen so far is to create an API class ShopifyApi and make those functions class methods. So it looks something like the figure below. I…

    Read More API Client DesignContinue

Page navigation

Previous PagePrevious 1 … 6 7 8 9 10 … 13 Next PageNext

© 2025 Alex Rusin Blog - WordPress Theme by Kadence WP

  • Blog
    • AWS
    • Javascript Development
    • Remix
    • PHP MySQL Development
    • Laravel
    • System Administration
    • WordPress Development
    • Magento
    • Uncategorized
  • My Projects