File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Update your `composer` require block:
10
10
11
11
# Usage
12
12
``` php
13
- use pubsubhubbub\subscriber \Subscriber;
13
+ use \Pubsubhubbub\Subscriber \Subscriber;
14
14
15
15
$hub_url = "http://pubsubhubbub.appspot.com";
16
16
$callback_url = "put your own endpoint here";
Original file line number Diff line number Diff line change 15
15
"php" : " ~5.4 || ~7.0"
16
16
},
17
17
"autoload" : {
18
- "psr-4" : { "pubsubhubbub \\ subscriber \\ " : " src/" }
18
+ "psr-4" : { "Pubsubhubbub \\ Subscriber \\ " : " src/" }
19
19
}
20
20
}
Original file line number Diff line number Diff line change 7
7
8
8
include ("./src/Subscriber.php " );
9
9
10
+ use \Pubsubhubbub \Subscriber \Subscriber ;
11
+
10
12
$ hub_url = "http://pubsubhubbub.appspot.com " ;
11
13
$ callback_url = "put your own endpoint here " ;
12
14
13
15
$ feed = "http://feeds.feedburner.com/onlineaspect " ;
14
16
15
17
// create a new subscriber
16
- $ s = new Pubsubhubbub \ Subscriber \ Subscriber ($ hub_url , $ callback_url );
18
+ $ s = new Subscriber ($ hub_url , $ callback_url );
17
19
18
20
// subscribe to a feed
19
21
$ s ->subscribe ($ feed );
You can’t perform that action at this time.
0 commit comments