matrix-php-sdk | Matrix SDK for PHP - Laravel | SDK library
kandi X-RAY | matrix-php-sdk Summary
kandi X-RAY | matrix-php-sdk Summary
Matrix SDK for PHP - Laravel
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert an exception to an exception .
- Creates a new room .
- Performs HTTP request .
- Upload file .
- Perform an API request .
- Change the user s password .
- Deactivate the account
- Logout the user
- Boot the application .
- Logins the user
matrix-php-sdk Key Features
matrix-php-sdk Examples and Code Snippets
Community Discussions
Trending Discussions on matrix-php-sdk
QUESTION
I am newbie in PHP and have quite pure experience working with RESTful API. So if anyone can help with my problem I will very appreciate it.
The goal is to create a chat room in Matrix, make some basic steps as registration, logging in and further communication between couple of clients over that room.
Problem 1: It looks like this is the only one documentation that is available at internet at all. https://matrix.org/docs/guides/client-server.html
And it is not clear for me. Could not find any other good examples of what I need.
Problem 2: No sure what type of request to use, as I understand RESTful API can use many of them: Simple request, Asynchronous request, Conccurent request, and the syntax of course differs.
Problem 3: Not sure if I correctly make an request them selves. Examples below.
What I have already done: Because my project in on Laravel, I use Guzzle client to form my queries and via composer have already installet Matrix dependancy as its described here: https://github.com/updivision/matrix-php-sdk
Here is example of my request, which of course don't work properly:
...ANSWER
Answered 2018-Feb-21 at 08:53The SDK wraps all the API calls so you don't need to be creating requests through Guzzle. Instead look through the resources directory and understand what the SDK offers. Lets start with a registration request, it is available here in the source.
register.blade.php
Start by creating a simple registration form.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install matrix-php-sdk
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page