Download the PHP package viraxpress/meta-og-twitter without Composer

On this page you can find all versions of the php package viraxpress/meta-og-twitter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package meta-og-twitter

ViraXpress Meta, Open Graph and Twitter Card Module

A powerful Magento 2 extension that automatically generates and manages Open Graph (OG) and Twitter Card meta tags for your store's products, categories, and CMS pages.

Description

The ViraXpress Meta, Open Graph and Twitter Card Module enhances your store's social media sharing capabilities by automatically generating rich, customizable meta tags for social platforms. With this extension, when customers share your products, categories, or pages on social media, they appear with attractive preview cards featuring images, titles, and descriptions.

This module provides complete control over how your store content appears across Facebook, Twitter, LinkedIn, and other social platforms that support Open Graph and Twitter Card standards.

Features

Open Graph (OG) Tags

Twitter Card Tags

App Card Integration

Player Card Integration

Administrative Control

Compatibility

Installation

  1. Install the extension via Composer:

  2. Run the following commands from your Magento root directory:

Configuration

Accessing Configuration

  1. Navigate to Stores > Configuration -> ViraXpress in the Magento Admin Panel
  2. Look for the OG and Twitter Meta Tags section.
  3. Expand to view configuration options for OG Tags and Twitter Tags

Configuring OG Tags

For CMS Pages:

  1. Go to OG Tags > Tags for CMS Pages
  2. Enable OG Tags: Toggle to enable/disable OG tag generation
  3. OG Title: Select which page attribute to use as the title
  4. OG Description: Select which page attribute to use as the description

For Category Pages:

  1. Go to OG Tags > Tags for Category Page
  2. Enable OG Tags: Toggle to enable/disable OG tag generation for categories
  3. OG Title: Select which category attribute (Name, Description, etc.) to use as the title
  4. OG Description: Select which category attribute to use as the description

For Product Pages:

  1. Go to OG Tags > Tags for Product Page
  2. Enable OG Tags: Toggle to enable/disable OG tag generation for products
  3. OG Title: Select which product attribute (Product Name, SKU, etc.) to use as the title
  4. OG Description: Select which product attribute to use as the description

Configuring Twitter Tags

Global Twitter Settings:

  1. Go to Twitter Tags section
  2. Twitter Card Type: Select from:
    • Summary: Default card type with summary text
    • Photo: Card featuring a photo/image
    • Video: Card for video content
    • Player: Card for embedded media players
    • App: Card for mobile app promotion
  3. Twitter Site Username: Enter your Twitter site username (without @)
  4. Twitter Author Handle: Enter the default author's Twitter handle

App Card Integration (when Card Type is "App"):

  1. Navigate to App Card Integration section
  2. Configure for each platform:
    • iPhone App ID: Apple App Store ID
    • iPhone App Name: Display name from App Store
    • iPhone App URL: Deep link or custom scheme URL
    • iPad App ID: iPad app store ID
    • iPad App Name: Specify iPad app name
    • iPad App URL: Deep link for iPad
    • Android App ID: Google Play Store ID
    • Android App Name: Application name from Play Store
    • Android App URL: Deep link or Play Store URL

Player Card Integration (when Card Type is "Player"):

  1. Navigate to Player Card Integration section
  2. Player URL: Enter the URL to your media player
  3. Player Width: Set width in pixels (e.g., 800)
  4. Player Height: Set height in pixels (e.g., 450)

For CMS Pages:

  1. Go to Twitter Tags > Tags for CMS Page
  2. Enable Twitter Tags: Toggle to enable/disable Twitter tag generation
  3. Twitter Title: Select which page attribute to use as the title
  4. Twitter Description: Select which page attribute to use as the description

For Category Pages:

  1. Go to Twitter Tags > Tags for Category Page
  2. Enable Twitter Tags: Toggle to enable/disable Twitter tag generation
  3. Twitter Title: Select the category attribute for the title
  4. Twitter Description: Select the category attribute for the description

For Product Pages:

  1. Go to Twitter Tags > Tags for Product Page
  2. Enable Twitter Tags: Toggle to enable/disable Twitter tag generation
  3. Twitter Title: Select the product attribute for the title
  4. Twitter Description: Select the product attribute for the description

Frontend Output

Once configured, the module automatically:

  1. Generates <meta> tags in the page <head> section
  2. Outputs OG tags with namespace og: (for Facebook and other platforms)
  3. Outputs Twitter tags with namespace twitter: (for Twitter/X)
  4. Truncates descriptions to 200 characters for optimal display
  5. Escapes special characters to prevent injection attacks

Example Generated Tags

Open Graph Tags:

Twitter Card Tags:

Support

For support, please contact ViraXpress at https://www.viraxpress.com or refer to the license agreement.

License

This extension is licensed under the ViraXpress license agreement. See https://www.viraxpress.com/license for details.


All versions of meta-og-twitter with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package viraxpress/meta-og-twitter contains the following files

Loading the files please wait ...