Consume and Expose API – Laravel possible solutions
How to consume APIs inside Laravel?
If you want to fetch, save, crawl, or fire a one-time request to a remote server that exposes API, there are a variety of options for Laravel. An example use-case would be updating the IMDB rating for a batch of movies and series for your film listing web application.
The popular ones are:
Things to keep in mind…
Heads Up! if the API you are going to consume in your application is well-known and complex, there is a high chance that someone else has already developed a library to just work with that API, like this Laravel package by Mustapha Alaouy that specifically calls YouTube API.
A Colorful SVG Spinner Vue.js Component
I just created a simple Vue.js spinner using SVG and CSS animation to iterate along with the different colors.
The default spinner comes from Glenn McComb post, where he created a spinning SVG circle using CSS animation. I have slightly adjusted it to put in a Vue.js template.
The HTML part is straight forward; we have a circle in 100 by 100 view box, centered at 50 with a radius of 45.
Install Mailparse extension on PHP 7.0 + Apache + Vagrant (Ubuntu)
- SSH into your server (Vagrant, Whatever)
- Follow the following instruction:
Source: https://stackoverflow.com/questions/35793216/installing-mailparse-php7-mbstring-error __
Although I ended up adding manually (last step) maybe this can be a future reference for myself or any other developer.
Certbot + Cloudflare
1. Install Certbot
more: https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx
2. Make cloudflare.ini
Get your API key
from: https://dash.cloudflare.com/profile
Secure cloudflare.ini
file:
more: https://certbot-dns-cloudflare.readthedocs.io/en/stable/#credentials
3. Install Cloudflare plugin
code: https://github.com/certbot/certbot/tree/master/certbot-dns-cloudflare_
more:_ https://certbot.eff.org/docs/using.html#plugins
4. Activate SSL
Change amirmasoud.me
and www.amirmasoud.me
to your domains:
more: https://certbot-dns-cloudflare.readthedocs.io/en/stable/#examples
Photography
A white flower on black background
A purple flower on black background