Download the PHP package eftec/amp-generator-one without Composer

On this page you can find all versions of the php package eftec/amp-generator-one. 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 amp-generator-one

AMPGeneratorOne

The library generates Google AMP sites using PHP by using procedural code.

Build Status Packagist Total Downloads [Maintenance]() [composer]() [php]() [php]() [CocoaPods]()

This application simplifies (via code) the generation of an AMP site. It's easiest to program, just a few of lines of code and that's it.

For example, let's say that you want to add a new section

It will generate the next visual:

How it works?

Tablet version

Mobile version

Mobile version (slider open)

Method __construct

AmpGeneratorOne constructor.

Parameters:

Parameters:

Method genStructured

It generates the social and seo structure (Twitter card, Facebook OG and Google Schema)

Parameters:

Method startAmp

Start to generate an Amp site.

Parameters:

Parameters:

Method head

Generates the header navigation

Parameters:

Method sectionFooter

It generates a footer of the amp site.

Parameters:

Method sectionAnalytics

Generates a Google Analytics section

Parameters:

Method sectionFirst

It draw a first section (hero style)

Parameters:

Method sectionImageButton

It generates a section with a single button.

Parameters:

Method sectionText

It generates a section with a text.

Parameters:

Method sectionTextQuote

It generates a quote text

Parameters:

Method sectionUL

It generates an unsorted list section

Parameters:

Method sectionOL

It generates a sorted list section

Parameters:

Method sectionButtons

It generates a section with one (or more than one) buttons.

Parameters:

Method sectionCols

It generates a section with columns

Parameters:

Method sectionHeaderCentral

It generates a header central section. It could includes buttons.

Parameters:

Method sectionRaw

Parameters:

Method sectionImageContent

It generates a section with an image content.

Parameters:

Method sectionImageContentLeft

It generates a section with a image content at the left.

Parameters:

Method sectionTable

It generates a table

Parameters:

Method sectionImage

It generates an image. The size of the image is required to calculate the ratio

Parameters:

Method sectionGMapFull

It generates a google map section. It can't be locate at the 30% top of the site (Amp restriction)

Parameters:

Method sectionGMapBoxed

It generates a google map (boxed) section. It can't be locate at the 30% top of the site (Amp restriction)

Parameters:

Method sectionNavigation

It generates a footer navigation

Parameters:

Method sectionColImage

It generates a section with images and text.

Parameters:

Method genModifyStyle

Parameters:

Method setBackgroundColor

Fluent operation, it changes the background color of the next section

Parameters:

Method setBgImage

Fluent operation, it changes the background image of the next section

Parameters:

Method setClassTextColor

Fluent operation, it sets the class of the text

Parameters:

Method setPadding

Fluent operation, it changes the padding

Parameters:

Method resetDefault

Parameters:

Method setDefault

It reset to the default background color and text class

Parameters:

Parameters:

Method table

Parameters:

Method render

It renders the result page.

Parameters:

Method renderToFile

It renders the result to file

Parameters:

Parameters:

Method genButton

Generate the first link of an array only if array constains information or the link is not empty.

Parameters:

Note: You could change the color. !

Validity

You could validate your amp on Google search validation

Version

Example demo:

See end result


All versions of amp-generator-one with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
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 eftec/amp-generator-one contains the following files

Loading the files please wait ....