Compare commits

...

2 commits

Author SHA1 Message Date
Tristan
9dad5a4aa7 adds namespace declarations to files 2025-01-09 15:33:45 +01:00
Tristan
edd8a7eb70 introduces composer package structure 2025-01-09 15:09:51 +01:00
11 changed files with 34 additions and 2 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
* eol=lf

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/vendor/

BIN
BOSH.php

Binary file not shown.

17
composer.json Normal file
View file

@ -0,0 +1,17 @@
{
"name": "thedevstack/php-xmpp",
"description": "small php library to use XMPP",
"type": "library",
"autoload": {
"psr-4": {
"thedevstack\\phpxmpp\\": "src/"
}
},
"authors": [
{
"name": "steckbrief",
"email": "steckbrief@chefmail.de"
}
],
"require": {}
}

View file

@ -37,5 +37,7 @@
* @copyright 2008 Nathanael C. Fritz
* @version $Id$
*/
namespace thedevstack\phpxmpp;
class XMPPException extends \Exception {
}

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz
* @version $Id$
*/
namespace thedevstack\phpxmpp;
class Roster {
/**
* Roster array, handles contacts and presence. Indexed by jid.
@ -155,4 +157,4 @@ class Roster {
return $this->roster_array;
}
}
?>
?>

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz
* @version $Id$
*/
namespace thedevstack\phpxmpp;
class XMLObj {
/**
* Tag name
@ -150,4 +152,4 @@ class XMLObj {
}
}
}
}
}

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz
* @version $Id$
*/
namespace thedevstack\phpxmpp;
class XMLStream {
/**
* @var resource

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz
* @version $Id$
*/
namespace thedevstack\phpxmpp;
class XMPP extends XMLStream {
/**
* @var string

View file

@ -37,6 +37,8 @@
* @copyright 2008 Nathanael C. Fritz
* @version $Id$
*/
namespace thedevstack\phpxmpp;
class XMPPLog {
const LEVEL_ERROR = 0;