SlideShare a Scribd company logo
www.glcnetworks.com
Building API with
PHP
GLC Webinar,
8 Apr 2021
Achmad Mardiansyah
achmad@glcnetworks.com
GLC Networks, Indonesia
1
www.glcnetworks.com
Agenda
● Introduction
● Review prerequisite knowledge
● web2.0
● Machine to machine communication
● API
● Live practice
● Q & A
2
www.glcnetworks.com
introduction
3
www.glcnetworks.com
What is GLC?
● Garda Lintas Cakrawala (www.glcnetworks.com)
● Based in Bandung, Indonesia
● Areas: Training, IT Consulting
● Certified partner for: Mikrotik, Ubiquity, Linux foundation
● Product: GLC radius manager
● Regular event
4
www.glcnetworks.com
Trainer Introduction
● Name: Achmad Mardiansyah
● Base: bandung, Indonesia
● Linux user since 1999, mikrotik user since 2007, UBNT
2011
● Mikrotik Certified Trainer
(MTCNA/RE/WE/UME/INE/TCE/IPv6)
● Mikrotik/Linux Certified Consultant
● Website contributor: achmadjournal.com, mikrotik.tips,
asysadmin.tips
● More info:
http://au.linkedin.com/in/achmadmardiansyah
5
www.glcnetworks.com
Past experience
6
● 2021 (Congo DRC, Malaysia): network support,
radius/billing integration
● 2020 (Congo DRC, Malaysia): IOT integration,
network automation
● 2019, Congo (DRC): build a wireless ISP from
ground-up
● 2018, Malaysia: network revamp, develop billing
solution and integration, setup dynamic routing
● 2017, Libya (north africa): remote wireless migration
for a new Wireless ISP
● 2016, United Kingdom: workshop for wireless ISP,
migrating a bridged to routed network
www.glcnetworks.com
About GLC webinar?
● First webinar: january 1, 2010 (title:
tahun baru bersama solaris - new year
with solaris OS)
● As a sharing event with various topics:
linux, networking, wireless, database,
programming, etc
● Regular schedule
● Irregular schedule: as needed
● Checking schedule:
http://www.glcnetworks.com/schedule
● You are invited to be a presenter
○ No need to be an expert
○ This is a forum for sharing: knowledge,
experiences, information
7
www.glcnetworks.com
Please introduce yourself
● Your name
● Your company/university?
● Your networking experience?
● Your mikrotik experience?
● Your expectation from this course?
8
www.glcnetworks.com
Prerequisite
● This presentation is not for beginner
● We assume you already understand:
○ Web programming (HTML, CSS, javascript)
○ Dynamic website (AJAX)
○ PHP (form handling)
○
9
www.glcnetworks.com
Review prerequisite knowledge
10
www.glcnetworks.com
What is web application?
11
www.glcnetworks.com
Remember 7 OSI layer
12
www.glcnetworks.com
What is HTTP?
13
www.glcnetworks.com
Web app protocol + components
14
www.glcnetworks.com
Web application flow
15
www.glcnetworks.com
16
www.glcnetworks.com
Components are from different website
17
www.glcnetworks.com
HTTP method (request vs response)
Method used between web client and web server
● GET → to get information
● POST → to send data
● PUT → update/replace data
● PATCH → update/modify data
● DELETE → delete data
18
www.glcnetworks.com
HTTP status code
1. Informational responses (100–199)
2. Successful responses (200–299)
3. Redirects (300–399)
4. Client errors (400–499)
5. Server errors (500–599)
19
Source: jayakrishnasfdc.wordpress.com
www.glcnetworks.com
Static vs dynamic website
20
www.glcnetworks.com
What is web server / application server?
(static vs dynamic content)
21
www.glcnetworks.com
API
22
www.glcnetworks.com
Application programming interface (API)
● Standardized interface for communication between 2 parties
● Example:
○ 7 OSI layer
○ Radius (AAA)
○ Telecommunication
○ CORBA
○ Representational state transfer (REST) API
■ Famous for web application
■ Via HTTP method
23
www.glcnetworks.com
Frontend vs Backend
Frontend:
● Handling user interface
● Forward request to backend (via API)
Backend (the API provider):
● Connect to database
● Receive request
● Reply with data (usually with json format)
Example:
● Ajax request
● Application API
24
www.glcnetworks.com
Example backend processing
Common steps
● Check if incoming request exist
● Check the HTTP method, is it
GET / POST / DELETE or
others?
● Do input sanitation
● Processing the incoming request
● Generate output
25
www.glcnetworks.com
API security
● Input sanitation
● IP address whitelist
● Tokenise
26
www.glcnetworks.com
LIVE practice
27
www.glcnetworks.com
preparation
● SSH client
● SSH parameters
○ SSH address
○ SSH port
○ SSH username
○ SSH password
28
www.glcnetworks.com
Q & A
29
www.glcnetworks.com
Interested? Just come to our training...
● Topics are arranged in systematic and logical way
● You will learn from experienced teacher
● Not only learn the materials, but also sharing experiences, best-practices, and
networking
30
www.glcnetworks.com
End of slides
● Thank you for your attention
● Please submit your feedback: http://bit.ly/glcfeedback
● Like our facebook page: https://www.facebook.com/glcnetworks
● Slide: https://www.slideshare.net/glcnetworks/
● Recording (youtube): https://www.youtube.com/c/GLCNetworks
● Stay tune with our schedule
● Any questions?
31

More Related Content

PDF
Building Web Server with Linux
PDF
Using Control-Webpanel for Hosting Service - Part 1
PDF
Building a Web Server with NGINX
PDF
Introduction to Web Development
PDF
Network Monitoring with The Dude and Whatsapp
PDF
Dynamic Website with Python
PDF
Build Your Own ISP
PDF
Mikrotik firewall raw table
Building Web Server with Linux
Using Control-Webpanel for Hosting Service - Part 1
Building a Web Server with NGINX
Introduction to Web Development
Network Monitoring with The Dude and Whatsapp
Dynamic Website with Python
Build Your Own ISP
Mikrotik firewall raw table

Similar to Building API with PHP (20)

PDF
Mikrotik API
PDF
GIT as Mikrotik Configuration Management
PDF
Connection load balancing with mikrotik [workshop]
PDF
Building Local-loop Services for Customers
PDF
Tunnel vs VPN on Mikrotik
PDF
Manage Your Router with Dynamic Public IP
PPTX
VPN on Mikrotik
PDF
Trusted Email Server DKIM, SPF, DMARC, RDNS
PDF
Zabbix for Monitoring
PDF
Jumpstart your router with mikrotik quickset
PDF
mikrotik_quickset settings documents ref
PDF
Troubleshooting load balancing
PDF
RouterOS Migration From v6 to v7
PDF
Networking in Telecommunication (signalling, tcp, ucp, ss7, sctp, sigtran)
PDF
Mikrotik Hotspot
PDF
Firewall mangle PBR: steering outbound path similar to inbound
PDF
IPv6 with Mikrotik
PDF
EOIP Deep Dive
PDF
Radio Optimization In Telco - Part 1
PDF
CCNA : Intro to Cisco IOS - Part 1
Mikrotik API
GIT as Mikrotik Configuration Management
Connection load balancing with mikrotik [workshop]
Building Local-loop Services for Customers
Tunnel vs VPN on Mikrotik
Manage Your Router with Dynamic Public IP
VPN on Mikrotik
Trusted Email Server DKIM, SPF, DMARC, RDNS
Zabbix for Monitoring
Jumpstart your router with mikrotik quickset
mikrotik_quickset settings documents ref
Troubleshooting load balancing
RouterOS Migration From v6 to v7
Networking in Telecommunication (signalling, tcp, ucp, ss7, sctp, sigtran)
Mikrotik Hotspot
Firewall mangle PBR: steering outbound path similar to inbound
IPv6 with Mikrotik
EOIP Deep Dive
Radio Optimization In Telco - Part 1
CCNA : Intro to Cisco IOS - Part 1
Ad

More from GLC Networks (20)

PDF
Internal BGP tuning: Mesh peering to avoid loop
PDF
BGP tuning: Peer with loopback
PDF
BGP security tuning: pull-up route
PDF
BGP troubleshooting: route origin
PDF
Steering traffic in OSPF: Interface cost
PDF
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
PDF
Tuning OSPF: Prefix Aggregate
PDF
Tuning OSPF: area hierarchy, LSA, and area type
PDF
Stable OSPF: choosing network type.pdf
PDF
Controlling Access Between Devices in the same Layer 2 Segment
PDF
Best Current Practice (BCP) 38 Ingress Filtering for Security
PDF
Policy Based Routing with Indirect BGP - Part 2
PDF
Policy Based Routing with Indirect BGP - Part 1
PDF
Internet Protocol Deep-Dive
PDF
Mikrotik IP Settings For Performance and Security
PPTX
Automatic Backup via FTP - Part 2
PDF
Automatic Backup via FTP - Part 1
PDF
Voice Services, From Circuit Switch to VoIP
PDF
MPLS on Router OS V7 - Part 2
PDF
MPLS on Router OS V7 - Part 1
Internal BGP tuning: Mesh peering to avoid loop
BGP tuning: Peer with loopback
BGP security tuning: pull-up route
BGP troubleshooting: route origin
Steering traffic in OSPF: Interface cost
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
Tuning OSPF: Prefix Aggregate
Tuning OSPF: area hierarchy, LSA, and area type
Stable OSPF: choosing network type.pdf
Controlling Access Between Devices in the same Layer 2 Segment
Best Current Practice (BCP) 38 Ingress Filtering for Security
Policy Based Routing with Indirect BGP - Part 2
Policy Based Routing with Indirect BGP - Part 1
Internet Protocol Deep-Dive
Mikrotik IP Settings For Performance and Security
Automatic Backup via FTP - Part 2
Automatic Backup via FTP - Part 1
Voice Services, From Circuit Switch to VoIP
MPLS on Router OS V7 - Part 2
MPLS on Router OS V7 - Part 1
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Chapter 3 Spatial Domain Image Processing.pdf
sap open course for s4hana steps from ECC to s4
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Review of recent advances in non-invasive hemoglobin estimation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Building API with PHP