• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Introduction to Serverless With PHP (IBM Cloud OpenWhisk)

By Abhishek Ghosh May 19, 2018 2:46 pm Updated on May 19, 2018

Introduction to Serverless With PHP (IBM Cloud OpenWhisk)

Advertisement

Server less is a Great Concept. In our previously published articles, we discussed about IBM OpenWhisk and also shown how to install OpenWhisk on Ubuntu server. As it is a Free Software framework, we have no fear of vendor lock-in if we carefully use the PHP functions only. Here is Introduction to Serverless With PHP For IBM Cloud OpenWhisk.

Serverless concept itself as basic as using some object storage to host HTML, CSS, Javascript to do intended action. That is nothing new. We need kind-of-same to execute PHP like dynamic langugage on others server/service than on our hosting server. That will offload the load on server and hopefully make kind-of “parallel processing” because webpage’s HTTP call and call via CLI are different events – that makes a big difference with Javascript. It is like as if a ghost running PHP CLI commands from our servers on others server and delivering the result. We talked about Function-as-a-Service (FaaS). The ideas are great but examples, documentations for genuine deployment like as WordPress plugin is almost non-existent.

Fortunately or unfortunately, you may need to setup your computer with IBM Bluemix Tools. These setups on own server is single most disgusting work when compared with IaaS/Cloud Server. Even if not needed for OpenWhisk, you’ll need them some other tool.

Advertisement

---

Serverless is a Node.js CLI tool. Go to the official Node.js website, download and follow the installation instructions :

Vim
1
https://serverless.com/framework/docs/providers/openwhisk/guide/installation/

With OpenWhisk we can extract computing power from our lesser used server from popular one apart from using it as service of IBM or others. So, your two extra few GB RAM servers actually not going in waste.

Introduction to Serverless With PHP IBM Cloud OpenWhisk

 

Introduction to Serverless With PHP

 

Thankfully there is PHP Composer package for OpenWhisk. Oddly, IBM has another Composer with conflicting name :

Vim
1
https://github.com/ibm-functions/composer

We were taling about this Composer :

Vim
1
https://dzone.com/articles/using-composer-packages-with-openwhisk

OpenWhisk has Actions, which is PHP Functions. Sequences is to connect and chain multiple actions.
Triggers are for organizing event sources. Rules connect Triggers and Actions. Packages allows to bundle a set of actions.

Serverless has own website :

Vim
1
https://serverless.com/

As Amazon, IBM and native Apache OpenWhisk are working for the same stuff, it will be prudent to install Apache OpenWhisk on own server and test, deploy the stuffs. It is not practical to develop, code for IBM or Amazon, rather adjust coding on need. You’ll get Example for IBM on that website :

Vim
1
https://serverless.com/framework/docs/providers/openwhisk/examples/

Then you can test this :

Vim
1
https://github.com/serverless/examples/tree/master/openwhisk-php-simple

You can read this guide :

Vim
1
http://blog.zerosharp.com/a-concrete-php-serverless-example/

Some PHP frameworks for OpenWhisk developed, each has own merit. Usage for Amazon service may differ :

Vim
1
https://read.acloud.guru/serverless-php-630bb3e950f5

You may create a Hello Dolly Plugin for WordPress using OpenWhisK to test. I am at Hello Dolly stage around OpenWhisk.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Introduction to Serverless With PHP (IBM Cloud OpenWhisk)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Run Serverless for Free : GitHub Pages & OpenWhisk/IBM Cloud

    Many users fear to test serverless because of unknown cost. Serverless is just hacked form of hosting HTML pages on Cloud Storage or CDN.

  • Serverless WordPress and Some Serverless WordPress Plugins

    Serverless Probably One of the Most Tricky Usage of Cloud Computing. Serverless is the native architecture of the cloud that enables to shift the operational responsibilities to the cloud host without thinking about servers. Previously we discussed about Serverless, gave example how to work with IBM Serverless and published example of PHP scripts with Serverless. […]

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy