Write a PHP XML Parser:: Format External WordPress API XML string data into array

  Рет қаралды 731

TechiePress

TechiePress

Күн бұрын

Welcome to part 5 of our series on querying an XML API in WordPress! In this video, we'll be writing a basic PHP XML parser to convert malformatted array data using the SimpleXmlElement function. This will make it easier to transform or mutate the data in JavaScript.
We'll start off by discussing the challenge at the beginning of the video, and then we'll move on to refactoring our code. From there, we'll dive into the coding solution and learn how to deal with both objects and arrays.
Finally, we'll wrap up the video by formatting the output array to make it simpler and provide better data from the onset.
Thanks for watching!
VIDEO CHAPTERS
00:00 The challenge
00:52 Refactor the code
01:52 Coding solution
03:25 Dealing with objects
04:23 Dealing with arrays
06:20 Format output array
Starter Code: github.com/YTTechiePress/tech...
Full Code: github.com/YTTechiePress/tech...
HOW TO SUPPORT THE CHANNEL
=============================================
Do you like what I am doing?
- Buy me a coffee through www.buymeacoffee.com/techiepress
- Give via PayPal: paypal.me/laurencebahiirwa
- Visit omukiguy.com/support-my-work/
I am social too:
Facebook: / techiepress-1001496550...
Twitter: / omukiguy
Blog & Newsletter: omukiguy.com
Github: github.com/yttechiepress
-------------------------------------------------------------------------------
LEARN MORE IN THE WELL CURATED PLAYLISTS BELOW
--------------------------------------------------------------------------------
Learn how to build a plugin from scratch: • Plugins Vs Functions.p...
WooCommerce E-Commerce customizations
== Build Free Custom E-commerce Online Shop using WooCommerce - • WooCommerce customizat...
== Build Free Custom Theme for E-commerce Online Shop using WooCommerce -
• Woocommerce Restaurant...
====== Build Dynamic Websites with Elementor ======
== Learn the Elementor basics - • Elementor Beginner Tut...
== Build a custom Elementor Widget from Scratch - • Build Custom Elementor...
====== How to use WordPress Gutenberg Block Editor ======
WordPress 5.4 Gutenberg Blocks Updates
== • WordPress 5.4 Gutenber...
WordPress Gutenberg blocks for Designers
== • WordPress Basics Train...
Gutenberg WordPress Block Editor tutorials for beginners
== • WordPress Basics Train...
Custom WooCommerce Gateway Development from Scratch
== • Build Custom WooCommer...
WordPress Custom REST API Namespaces, Endpoints and Examples from Scratch
== • Create Custom WordPres...
====== WordPress Plugin Development from Scratch ======
Build Most Popular & Most Commented Post Plugin
== • Build WordPress Most P...
Build SMS Plugin with External WordPress API Integration using custom WordPress Databases
== • Build SMS Plugin - Ext...
WordPress External APIs Integration Plugin Development
== • WordPress External API...
Convert WordPress to mobile App in Headless WordPress
== Convert WordPress Sports Website into Mobile Application - kzbin.info?list...
Make GraphQL API endpoints with WordPress Headless CMS WPGraphQL Plugin
== • Make GraphQL API endpo...
Customize Your WordPress & ClassicPress
== Build Custom REST API Endpoints with WordPress or ClassicPress - • Build Custom REST API ...
Custom Dashboard Widgets
== • Custom Dashboard Widge...
Build Custom Admin
== • Custom Admin for WordP...
Learn Git
== Git tutorial for writers + software developers for beginners - • Git tutorial for begin...

Пікірлер: 8
@pankajwp
@pankajwp Жыл бұрын
Excellent work, keep updating keep learning
@TechiePress
@TechiePress Жыл бұрын
Thank you, I will
@russellazim6589
@russellazim6589 Жыл бұрын
after long time you are uploading video, so thanks.
@TechiePress
@TechiePress Жыл бұрын
Yes I am. It’s been a tough half of the year for me personally but now moving forward. Will be uploading weekly or more through out the new year.
@onelook1870
@onelook1870 Жыл бұрын
Hey please show how to setup vscode for WordPress plugin and theme development.
@pankajwp
@pankajwp Жыл бұрын
Yes,, please make a video on that too
@TechiePress
@TechiePress Жыл бұрын
I did here. kzbin.info/www/bejne/pn6zm6V5qcemfK8
@TechiePress
@TechiePress Жыл бұрын
I did here kzbin.info/www/bejne/pn6zm6V5qcemfK8
Display WordPress API XML Queried data on front end with AJAX
28:49
Querying external APIs with XML data using WordPress
18:18
TechiePress
Рет қаралды 2,2 М.
БИМ БАМ БУМ💥
00:14
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 3,8 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 9 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 84 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,2 МЛН
SSH into Remote VM with VS Code | Tunneling into any cloud | GCP Demo
10:26
PHP Debug External API data Query in WordPress
13:19
TechiePress
Рет қаралды 2,4 М.
Deep Dive into REST API Design and Implementation Best Practices
12:02
Software Developer Diaries
Рет қаралды 43 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 558 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 2,5 МЛН
İĞNE İLE TELEFON TEMİZLEMEK!🤯
0:17
Safak Novruz
Рет қаралды 1,1 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 725 М.