We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22be43f commit 719f048Copy full SHA for 719f048
README.md
@@ -42,13 +42,26 @@ Example:
42
* @var OpenGraph $openGraph
43
*/
44
$openGraph = Yii::$app->opengraph;
45
-
46
```
47
48
49
50
#### How to use
51
52
-```
53
+Add basic attributes:
+
+```php
54
+ /**
55
+ * @var OpenGraph $openGraph
56
+ */
57
+ $openGraph = Yii::$app->opengraph;
58
59
+ $openGraph->getBasic()
60
+ ->setUrl('https://umanskyi.com')
61
+ ->setTitle('My_Article_Title')
62
+ ->setDescription('My_Article_Description)
63
+ ->setSiteName('My_Site_Name')
64
+ ->setLocale('pl_PL')
65
+ ->setLocalAlternate(['fr_FR', 'en_US'])
66
+ ->render();
67
0 commit comments