Download the PHP package tecnodesignc/adsense-module without Composer

On this page you can find all versions of the php package tecnodesignc/adsense-module. 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 adsense-module

Adsense Module

Special Thanks

to Nicolas Widart for EncoreCMS and his Menu Module, that was used as a foundation for the Adsense Module.

Installation

You can install Adsense module using composer: composer require tecnodesignc/adsense-module

After the module is installed, you have to give yourself access in EncoreCMS (using Roles/Permissions). New Space item will appear in the Sidebar

Usage

Prerequisites

By default, Space module is created using Bootstrap Carousel http://getbootstrap.com/javascript/#carousel so make sure you have all prerequisites loaded for standard Bootstrap carousel (Bootstrap Carousel CSS and JS)

Basic Usage

You can create basic Space using the EncoreCMS admin interface - you can create and name your space (pay attention to the System Name field here, it is used later for rendering), and create individual ads. Ads can be linked to images in the Media module, or have URL pointing to external image. They can also contain hyperlink to any page on the site, fixed URI or URL.

When the space is created, you can render it in your template using {!! Space::render('space_system_name') !}}

Advanced Usage

Use your own space template

If you want to change rendering of your space, use custom HTML, CSS classes, etc, you can pass a Blade template name as a second parameter to the render() method, i.e. {!! Space::render('space_system_name', 'space/my-own-space') !}}

Template may look like this:

You will have Modules\Adsense\Entities\Space instance available in the $space variable

Provide your own Space instance

You can also pass a Modules\Adsense\Entities\Space instance as a first parameter instead of the space system_name to render dynamically created space.

First, create instance of your space and add ads in your controller and pass it to the view

then, inside of the homepage.blade.php template, you can render space using {!! Adsense::render('system_name', 'template) !!}

Resources


All versions of adsense-module with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
composer/installers Version ~1.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 tecnodesignc/adsense-module contains the following files

Loading the files please wait ....