PHPackages                             monsat/ogp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. monsat/ogp

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

monsat/ogp
==========

CakePHP OGP Plugin

943.0k↑206.7%2PHP

Since May 20Pushed 12y ago3 watchersCompare

[ Source](https://github.com/monsat/Ogp)[ Packagist](https://packagist.org/packages/monsat/ogp)[ RSS](/packages/monsat-ogp/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Ogp
===

[](#ogp)

CakePHP OGP Plugin

USAGE
-----

[](#usage)

```
# view
$this->Ogp->title('page title');     // add title tag
$this->Ogp->image($post['Post']['author_image_url']);
// the other property
$this->Ogp->set(
  'description',                     // name="og:description"
  "stripped \n and tags",     // content
  // options
  array(
    'meta' => true,                  // add normal meta tag
  ),
);

# layout
$this->fetch('meta');
```

INSTALL
-------

[](#install)

### Download this code

[](#download-this-code)

download this code. and put them your plugin directory.

```
cd your_app
ls Plugin

Ogp
```

or clone / submodule add

```
cd your_app
git clone git://github.com/monsat/Ogp.git Plugin/Ogp
```

### Load plugin

[](#load-plugin)

```
# APP/Config/bootstrap.php
CakePlugin::load('Ogp');
```

```
# APP/Controller/AppController.php
$helpers = array( 'Html', 'Form', 'Ogp.Ogp');
```

### Default settings

[](#default-settings)

If you do not set values in views , default values are used.

```
# APP/Config/bootstrap.php
Configure::write('Site', array(
  'site_name' => 'My Site',
  'description' => 'My Site is awesome',
  'image' => '/img/image.png',
  'type' => 'website',
  'separator' => ' - ',
));
```

### Settings

[](#settings)

default settings

```
Configure::write('Ogp.settings', array(
  'base' => 'Site.',
  'autoKeys' => array('type'), // set by beforeLayout
));
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e24f9ce8b584780165f9bc6b221d079f87bebff3d34e37bb571190fdc281c8cb?d=identicon)[mon\_sat](/maintainers/mon_sat)

---

Top Contributors

[![monsat](https://avatars.githubusercontent.com/u/85702?v=4)](https://github.com/monsat "monsat (12 commits)")[![muneando](https://avatars.githubusercontent.com/u/2174971?v=4)](https://github.com/muneando "muneando (4 commits)")

### Embed Badge

![Health badge](/badges/monsat-ogp/health.svg)

```
[![Health](https://phpackages.com/badges/monsat-ogp/health.svg)](https://phpackages.com/packages/monsat-ogp)
```

###  Alternatives

[datlechin/filament-menu-builder

Create and manage menus and menu items

14461.5k3](/packages/datlechin-filament-menu-builder)[t3/dce

Best FlexForm based content elements since 2012. With TCA mapping feature, simple backend view and much more features which makes it super easy to create own content element types.

17463.6k1](/packages/t3-dce)[hanson/rainbow

4710.6k](/packages/hanson-rainbow)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
