File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Software License] [ ico-license ]] ( LICENSE.md )
4
4
5
- An activitystreams 2.0 php package
5
+ ** This package is in active development, this is not a complete implementation of ActivityStreams 2.0 **
6
+
7
+ An activitystreams 2.0 php package.
6
8
7
9
## Install
8
10
@@ -13,6 +15,21 @@ $ composer require dansup/php-activitystreams
13
15
```
14
16
15
17
## Usage
18
+ ``` php
19
+ use Dansup\ActivityStreams\ServerFactory;
20
+
21
+ $server = ServerFactory::create(['version' => '2.0']);
22
+
23
+ $item = $server->object();
24
+
25
+ $item->setType('Note')
26
+ $item->setId('http://example.org/note/123');
27
+ $item->setName('Our Weather Is Fine');
28
+ $item->setContent('I feel that the weather is appropriate to our season and location.');
29
+
30
+ echo $item->get();
31
+ ```
32
+
16
33
17
34
## Change log
18
35
You can’t perform that action at this time.
0 commit comments