Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.
Category: PHP
PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. It also has evolved to include a command-line interface capability and can be used in standalone graphical applications. PHP can be deployed on most web servers and as a standalone interpreter, on almost every operating system and platform free of charge.
PHP was originally created by Rasmus Lerdorf in 1995. The main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification.PHP originally stood for “Personal Home Page”, it is now said to stand for “PHP: Hypertext Preprocessor”, a recursive acronym.
PHP: Call API using Curl
We are writing this post to describe how to call API through PHP script using CURL method. So it helps you to develop an APP and to call the different third-party API.
Magento 2: API
I am writing this post to describe how to use Magento API through php script and also for the APP. So it helps to develop APP and also to test in Magento side.
Laravel Commands
Laravel is one of the best PHP Framework. Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
JQuery AJAX with PHP tips
Some people have faced problem in use of jquery ajax with PHP that how to post and how to display response data from PHP.
Here i am using different kind of examples for jquery ajax using PHP.
Converting character encoding
Introduction ICONV
Iconv is a computer program and a standardized API used to convert between different character encodings.
This module contains an interface to iconv character set conversion facility. With this module, you can turn a string represented by a local character set into the one represented by another character set, which may be the Unicode character set. Supported character sets depend on the iconv implementation of your system. Note that the iconv function on some systems may not work as you expect. In such case, it’d be a good idea to install the » GNU libiconv library. It will most likely end up with more consistent results.
PHP: Enabling, disabling magic quotes
Magic Quotes is a process that auto magically escapes incoming data to the PHP script. It’s preferred to code with magic quotes off and to instead escape the data at runtime, as needed.
Magic quotes is a controversial feature of the PHP scripting language, which was introduced to help newcomers write functioning SQL commands without requiring manual escaping. It was later described and widely misinterpreted as help to prevent inexperienced developers from writing code which is vulnerable to SQL injection attacks. This feature is officially deprecated as of PHP 5.3.0, and removed in PHP 5.4 due to security concerns.
PHP: Resize and crop image
Here is a image class which helps you to re-size or crop image in different width and height as you want. It also helps to re-size image by ratio.