2017 © Pedro Peláez
 

library facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

image

facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  • Thursday, February 8, 2018
  • by chrisackermann
  • Repository
  • 16 Watchers
  • 37 Stars
  • 6,533 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 28 Forks
  • 11 Open issues
  • 9 Versions
  • 41 % Grown

The README.md

Facebook Instant Articles SDK Extensions in PHP

Build Status Latest Stable Version, (*1)

The Facebook Instant Articles SDK Extensions in PHP provides a native PHP interface for converting valid Instant Articles into AMP. This gives developers the ability to have AMP content right after getting his own Instant Article markup format ready., (*2)

The Extension package consists of: - Environment: PHP >= 5.4 - Dependencies: It relies solely on the Instant Articles SDK and its dependencies to get the Instant Article markup format available into the Elements object tree structure. It also depends on Composer dependency manager. - AMP: The AMP transformation was based on the current implementation and definition from AMP project., (*3)

Quick Start

$ composer require facebook/facebook-instant-articles-sdk-extensions-in-php

After the installation, you can include the auto loader script in your source with:, (*4)

require_once('vendor/autoload.php');

Also be sure to check the quick start example., (*5)

Official Documentation

You can find examples on how to use the different components of this SDK to integrate with your CMS in the Quick Start Guide of the documentation., (*6)

Contributing

Clone the repository, (*7)

$ git clone https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php.git

Composer is a prerequisite for testing and developing. Install composer globally, then install project dependencies by running this command in the project's root directory:, (*8)

$ composer install

To run the tests:, (*9)

$ composer test

To fix and check for coding style issues:, (*10)

$ composer cs

Extra lazy? Run, (*11)

$ composer all

to fix and check for coding style issues, and run the tests., (*12)

If you change structure, paths, namespaces, etc., make sure you run the autoload generator:, (*13)

$ composer dump-autoload

For us to accept contributions you will have to first sign the Contributor License Agreement. Please see CONTRIBUTING for details., (*14)


Troubleshooting

If you are encountering problems, the following tips may help in troubleshooting issues:, (*15)

  • If your images are having dimension/aspect ratio problems, please check the the quick start example for more information.
  • At the moment, we have no way to determine a video's width and height, you need to explicitly pass that information via properties, see how to do it here.

Filing an issue

Issue template:, (*19)

# Issue Data
Instant Article Canonical URL: `http://yourdomain.com/path/article.html`
Exported Style JSON: `{...}`
Page ID: `12345`

# Problem noticed
1. Image XYZ missing

# Expected result
1. The Image XYZ should be present.

License

Please see the license file for more information., (*20)

The Versions

08/02 2018

dev-master

9999999-dev https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

08/02 2018

v0.2.1

0.2.1.0 https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

07/02 2018

v0.2.0

0.2.0.0 https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

07/02 2018

dev-fix/preview

dev-fix/preview https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

03/02 2018

dev-feature/responsive-image

dev-feature/responsive-image https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

16/11 2017

dev-compat-5.4

dev-compat-5.4 https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

26/06 2017

v0.1.1

0.1.1.0 https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

30/05 2017

dev-hhvm-ci

dev-hhvm-ci https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles

25/05 2017

v0.1.0

0.1.0.0 https://github.com/facebook/facebook-instant-articles-sdk-extensions-in-php

Facebook Instant Articles SDK Extensions in PHP to transform Instant Articles markup file into AMP

  Sources   Download

proprietary

The Requires

 

The Development Requires

extensions sdk facebook amp articles instant instantarticles