jaxl / JAXL

Asynchronous, non-blocking I/O, event based PHP library for writing custom TCP/IP client and server implementations. From it's previous versions, library inherits a full blown stable support for XMPP protocol stack. In v3.0, support for HTTP protocol stack was also added.
http://jaxl.readthedocs.org/
Other
379 stars 121 forks source link

Develop Method for register user #72

Closed bhavikdesai94 closed 8 years ago

bhavikdesai94 commented 8 years ago

Hey, Can you create a new method in your library so by simply passing username and password anyone can register to ejjaberd server because i am facing problem to create method for register user so can u do this?

abhinavsingh commented 8 years ago

Please see XEP-0077 and it's usage

bhavikdesai94 commented 8 years ago

I have seen XEP-0077 but how can i implement in my project i don't understood it. You have use this file in your example register_user, but you are taking two array args and argv so from where both the array came i don't get it. In your example how can i pass username and password for new user registration. that's why i said that can you make a simple method in jaxl.php file like register_user and it has parameters for username and password so it will create user, you made method send_chat_msg similar way can't you create register_user method because your current method is little bit complex for that person who doesn't familiar about the xmpp so if you do this type of method than anyone can easily understood your library.

bhavikdesai94 commented 8 years ago

I tested your register_user.php file in terminal and its works successfully so now i want to use it using broswer so which type of changes i need to do in that file.