How to Download File from URL in PHP

You may need to get file contents by URL quite often. For example, when you need to import some data from a third-party service, download an image or a backup. There are several ways to download files in PHP. You can use the file_get_contents() function, which stores the contents of any file into a variable, … Read more

How to Use Swagger in Laravel

If you need to interact with a third-party development team or your company wants documentation for an REST APIs you’re developing, you can use the OpenAPI Framework, also called Swagger. It is a standard API documentation system used in many companies. It’s crucial to have standardized, up-to-date documentation so that other developers can easily learn … Read more

How to Create REST API in Laravel

Modern websites are often developed in the SPA (Single Page Application) paradigm, when there is a separate backend written in PHP or another backend language and a frontend developed using one of the popular JavaScript frameworks, such as Vue or React. The backend implements only the API interface that the frontend uses to receive data … Read more

How to Request to External API in Laravel

You must often interact with different third-party APIs when developing various services. You can use file_get_contents or the curl extension for PHP to do this. Also, for many APIs, developers release libraries that you can use. But the use of low-level functions makes the code complex. On the other hand, you might have no access … Read more

Exit mobile version