An open API service indexing awesome lists of open source software.

https://github.com/multividas/multividas-cards-php

Build Multividas Cards markup in a PHP object
https://github.com/multividas/multividas-cards-php

multividas multividas-cards-php

Last synced: 5 months ago
JSON representation

Build Multividas Cards markup in a PHP object

Awesome Lists containing this project

README

          

# Multividas Cards PHP

[![Tests](https://github.com/multividas/multividas-cards-php/actions/workflows/tests.yml/badge.svg)](https://github.com/multividas/multividas-cards-php/actions/workflows/tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/multividas/multividas-cards-php.svg?style=flat-square)](https://packagist.org/packages/multividas/multividas-cards-php)
[![License](https://img.shields.io/github/license/multividas/multividas-cards-php?style=flat-square)](https://github.com/multividas/multividas-cards-php/blob/main/LICENSE)

Multividas Cards summarize webpage content for inline expansion of linked content on Multividas.com and Multividas native applications (iOS, Android, Mac). Multividas users may select an individual Thread and immediately view a content summary including a linked title, content description, image, author attribution, site attribution, and inline video.

The _MultividasCard_ PHP class helps you build Multividas Card markup for your website. Build a summary or photo card, set the appropriate attributes, and build elements suitable for output inside your (x)HTML document .

## Installation

Require this package with composer.

```shell
composer require multividas/multividas-cards-php
```

# Multividas Card meta tags

These HTML meta tags provide Multividas with information about your webpage, including the card type, your Multividas handle, page title, a brief description, and an image link for effective content sharing on the platform.

```html

```

multividas:card

# Summary Card

A Multividas Card is a "summary" by default.

Create a summary card By including Multividas Card markup in your :

```php
setSite('multividas');
$card->setTitle('https://multividas.com/');
$card->setDescription('With Multividas.com you can share short texts and posts, leaving comments and have discussions on threads.');
// optional
$card->setImage('01hm6xtg795hj1wx3dh33ftqy9', 'https://static-assets.multividas.com/storage/factory/pages/multividas/multividas-blogging-platform-multividas-social-media-blog-multividas-posts-threads-multividas-comments-discussions-multividas-short-texts-multividas-social-blogging.png', 'image/webp');

// echo a string of elements
echo $card->asHTML();

?>
```

## 🤝 Contributing

Please read the [contributing guide](https://github.com/multividas/.github/blob/main/CONTRIBUTING.md).

## 🛡️ Security Issues

If you discover a security vulnerability within Multividas, we would appreciate your help in disclosing it to us responsibly, please check out our [security issues guidelines](https://github.com/multividas/.github/blob/main/SECURITY.md).

## 🛡️ License

Licensed under the [MIT license](https://github.com/multividas/.github/blob/main/LICENSE).

---

> Email: multividasdotcom@gmail.com