SlideShare une entreprise Scribd logo
1  sur  16
Télécharger pour lire hors ligne
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
(Have a real time REST) with Laravel
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
Ionut Tanasa
Fullstack Web Developer / devOps
https://tanasa.co
ionut-tanasa@github ━ ionutz2k@twitter
(@laravelphp && @angular fanatic) || (@ionicframework lover)
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
Real time using PHP
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT
REALTIME USING PHP!?
(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
“what do cool kids use this days?”
Jeffrey Way
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT
www.pusher.com
❏ flexible messaging with websockets
❏ easily scalable ($$$)
❏ fa figo
(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT
// AlertsController@store
public function store(AlertStoreRequest $request) {
event(
new AlertWasLaunched(
new Alert($request->only([
'device', 'latitude', 'longitude'
]))
)
);
return response(['created' => true], 201);
}
(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT
class AlertWasLaunched implements ShouldBroadcast
{
use InteractsWithSockets, SerializesModels;
public $alert;
public function __construct(Alert $alert) {
$this->alert = $alert;
}
public function broadcastOn() {
return new PrivateChannel('alerts'); // private-alerts
}
public function broadcastAs() {
return 'newAlert';
}
}
(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
WWW.COMMITSOFTWARE.IT
var client = new Pusher(PUSHER_KEY, {
cluster: 'eu',
authEndpoint: "https://example.com/pusher/auth"
});
var pusher = $pusher(client);
var alertsChannel = pusher.subscribe("private-alerts");
alertsChannel.bind("newAlert", function (data) {
/* data = { alert: {
device: {},
latitude: 0.0,
longitude: 0.0
}
}
*/
});
(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
Qs?
WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
www.commitsoftware.it
Grazie per l’attenzione (via all’aperitivo)

Contenu connexe

Plus de Commit University

Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf
Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdfBreaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf
Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdfCommit University
 
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdfAccelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdfCommit University
 
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...Commit University
 
Commit - Qwik il framework che ti stupirà.pptx
Commit - Qwik il framework che ti stupirà.pptxCommit - Qwik il framework che ti stupirà.pptx
Commit - Qwik il framework che ti stupirà.pptxCommit University
 
Sviluppare da zero una Angular Web App per la PA
Sviluppare da zero una Angular Web App per la PASviluppare da zero una Angular Web App per la PA
Sviluppare da zero una Angular Web App per la PACommit University
 
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...Commit University
 
Prisma the ORM that node was waiting for
Prisma the ORM that node was waiting forPrisma the ORM that node was waiting for
Prisma the ORM that node was waiting forCommit University
 
Decision-making for Software Development Teams - Commit University
Decision-making for Software Development Teams - Commit UniversityDecision-making for Software Development Teams - Commit University
Decision-making for Software Development Teams - Commit UniversityCommit University
 
Component Design Pattern nei Game Engine.pdf
Component Design Pattern nei Game Engine.pdfComponent Design Pattern nei Game Engine.pdf
Component Design Pattern nei Game Engine.pdfCommit University
 
Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...
Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...
Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...Commit University
 
Prototipazione Low-Code con AWS Step Functions
Prototipazione Low-Code con AWS Step FunctionsPrototipazione Low-Code con AWS Step Functions
Prototipazione Low-Code con AWS Step FunctionsCommit University
 
KMM survival guide: how to tackle struggles between Kotlin and Swift
KMM survival guide: how to tackle struggles between Kotlin and SwiftKMM survival guide: how to tackle struggles between Kotlin and Swift
KMM survival guide: how to tackle struggles between Kotlin and SwiftCommit University
 
Da Vuex a Pinia: come fare la migrazione
Da Vuex a Pinia: come fare la migrazioneDa Vuex a Pinia: come fare la migrazione
Da Vuex a Pinia: come fare la migrazioneCommit University
 
Orchestrare Micro-frontend con micro-lc
Orchestrare Micro-frontend con micro-lcOrchestrare Micro-frontend con micro-lc
Orchestrare Micro-frontend con micro-lcCommit University
 
Fastify has defeated Lagacy-Code
Fastify has defeated Lagacy-CodeFastify has defeated Lagacy-Code
Fastify has defeated Lagacy-CodeCommit University
 
Alpine.js: the outsider Javascript framework
Alpine.js: the outsider Javascript frameworkAlpine.js: the outsider Javascript framework
Alpine.js: the outsider Javascript frameworkCommit University
 
Modificazione del comportamento: come la Gamification cattura l'attenzione
Modificazione del comportamento: come la Gamification cattura l'attenzioneModificazione del comportamento: come la Gamification cattura l'attenzione
Modificazione del comportamento: come la Gamification cattura l'attenzioneCommit University
 

Plus de Commit University (20)

Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf
Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdfBreaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf
Breaking REST Chains_ A Fastify & Mercurius Pathway to GraphQL Glory.pdf
 
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdfAccelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
Accelerating API Development: A Pit Stop with Gin-Gonic in Golang-Slide.pdf
 
Slide-10years.pdf
Slide-10years.pdfSlide-10years.pdf
Slide-10years.pdf
 
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
Collaborazione, Decisionalità e Gestione della Complessità nel Tempo: cosa ...
 
Vue.js slots.pdf
Vue.js slots.pdfVue.js slots.pdf
Vue.js slots.pdf
 
Commit - Qwik il framework che ti stupirà.pptx
Commit - Qwik il framework che ti stupirà.pptxCommit - Qwik il framework che ti stupirà.pptx
Commit - Qwik il framework che ti stupirà.pptx
 
Sviluppare da zero una Angular Web App per la PA
Sviluppare da zero una Angular Web App per la PASviluppare da zero una Angular Web App per la PA
Sviluppare da zero una Angular Web App per la PA
 
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
 
Prisma the ORM that node was waiting for
Prisma the ORM that node was waiting forPrisma the ORM that node was waiting for
Prisma the ORM that node was waiting for
 
Decision-making for Software Development Teams - Commit University
Decision-making for Software Development Teams - Commit UniversityDecision-making for Software Development Teams - Commit University
Decision-making for Software Development Teams - Commit University
 
Component Design Pattern nei Game Engine.pdf
Component Design Pattern nei Game Engine.pdfComponent Design Pattern nei Game Engine.pdf
Component Design Pattern nei Game Engine.pdf
 
Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...
Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...
Un viaggio alla scoperta dei Language Models e dell’intelligenza artificiale ...
 
Prototipazione Low-Code con AWS Step Functions
Prototipazione Low-Code con AWS Step FunctionsPrototipazione Low-Code con AWS Step Functions
Prototipazione Low-Code con AWS Step Functions
 
KMM survival guide: how to tackle struggles between Kotlin and Swift
KMM survival guide: how to tackle struggles between Kotlin and SwiftKMM survival guide: how to tackle struggles between Kotlin and Swift
KMM survival guide: how to tackle struggles between Kotlin and Swift
 
Da Vuex a Pinia: come fare la migrazione
Da Vuex a Pinia: come fare la migrazioneDa Vuex a Pinia: come fare la migrazione
Da Vuex a Pinia: come fare la migrazione
 
Orchestrare Micro-frontend con micro-lc
Orchestrare Micro-frontend con micro-lcOrchestrare Micro-frontend con micro-lc
Orchestrare Micro-frontend con micro-lc
 
Fastify has defeated Lagacy-Code
Fastify has defeated Lagacy-CodeFastify has defeated Lagacy-Code
Fastify has defeated Lagacy-Code
 
SwiftUI vs UIKit
SwiftUI vs UIKitSwiftUI vs UIKit
SwiftUI vs UIKit
 
Alpine.js: the outsider Javascript framework
Alpine.js: the outsider Javascript frameworkAlpine.js: the outsider Javascript framework
Alpine.js: the outsider Javascript framework
 
Modificazione del comportamento: come la Gamification cattura l'attenzione
Modificazione del comportamento: come la Gamification cattura l'attenzioneModificazione del comportamento: come la Gamification cattura l'attenzione
Modificazione del comportamento: come la Gamification cattura l'attenzione
 

Dernier

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 

Dernier (20)

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 

(Have a) rest with Laravel - Case History

  • 1. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT
  • 2. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT (Have a real time REST) with Laravel
  • 3. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT Ionut Tanasa Fullstack Web Developer / devOps https://tanasa.co ionut-tanasa@github ━ ionutz2k@twitter (@laravelphp && @angular fanatic) || (@ionicframework lover) WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 4. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 5. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT Real time using PHP WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 6. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT REALTIME USING PHP!? (Have a real time REST) With Laravel - Case History - @ionutz2k
  • 7. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT “what do cool kids use this days?” Jeffrey Way WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 8. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT www.pusher.com ❏ flexible messaging with websockets ❏ easily scalable ($$$) ❏ fa figo (Have a real time REST) With Laravel - Case History - @ionutz2k
  • 9. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 10. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 11. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 12. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT // AlertsController@store public function store(AlertStoreRequest $request) { event( new AlertWasLaunched( new Alert($request->only([ 'device', 'latitude', 'longitude' ])) ) ); return response(['created' => true], 201); } (Have a real time REST) With Laravel - Case History - @ionutz2k
  • 13. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT class AlertWasLaunched implements ShouldBroadcast { use InteractsWithSockets, SerializesModels; public $alert; public function __construct(Alert $alert) { $this->alert = $alert; } public function broadcastOn() { return new PrivateChannel('alerts'); // private-alerts } public function broadcastAs() { return 'newAlert'; } } (Have a real time REST) With Laravel - Case History - @ionutz2k
  • 14. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT WWW.COMMITSOFTWARE.IT var client = new Pusher(PUSHER_KEY, { cluster: 'eu', authEndpoint: "https://example.com/pusher/auth" }); var pusher = $pusher(client); var alertsChannel = pusher.subscribe("private-alerts"); alertsChannel.bind("newAlert", function (data) { /* data = { alert: { device: {}, latitude: 0.0, longitude: 0.0 } } */ }); (Have a real time REST) With Laravel - Case History - @ionutz2k
  • 15. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT Qs? WWW.COMMITSOFTWARE.IT(Have a real time REST) With Laravel - Case History - @ionutz2k
  • 16. CORPORATE PRESENTATION 2016 WWW.COMMITSOFTWARE.IT www.commitsoftware.it Grazie per l’attenzione (via all’aperitivo)