Download the PHP package calibrate/calibr8_gtm without Composer

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

Installation

Your html.tpl.php should look like this. This is present in the latest version of the calibr8_theme. If you installed this module on an old calibr8 setup or a site without the calibr8 themes, make sure these variables are printed.

... <link> <script></script> {{ gtm_datalayer }} {{ gtm_head }} ... </head> <body> {{ gtm_body }} ... </body></div><hr/> <h2 id="all-versions">All versions of calibr8_gtm with dependencies</h2> <div id="select-php-version" class="input-group" title="PHP version which will be used to build the Composer package."> <span class="input-group-addon">PHP Build Version</span> <select name="phpVersion" autocomplete="off" class="custom-select form-control"> <option value='8.0.21'>8.0.21</option><option value='7.3.33'>7.3.33</option> </select> </div> <div id="select-package-version" class="input-group" title="Which version of the package should be downloaded."> <span class="input-group-addon" id="select-package-version-label">Package Version</span> <select class="custom-select form-control" aria-describedby="select-package-version-label" autocomplete="off" data-package="calibr8_gtm" data-vendor="calibrate" data-latest-version="1.0.1.0" > <option value="1.0.1.0" selected="selected" > 1.0.1 </option> <option value="1.0.0.0" > 1.0.0 </option> </select> </div> <div id="accordion" role="tablist" aria-multiselectable="true"> <div class="card"> <div class="card-header" role="tab" id="heading"> <h3 class="mb-0"> <a data-toggle="collapse" data-parent="#accordion" href="#collapse" aria-expanded='true' aria-controls="collapse"> Version 1.0.1 <span class="date">Release 06. Jun 2018</span> </a> <p class="hidden-md-up"></p> <label class="float-right">  <button class="btn btn-phplibs btn-sm difference-btn"><i class="fa fa-question-circle"></i></button> </label> <label class="radio-inline float-right">   <input type="radio" name="download_type" value="CREATE_PROJECT" > create-project</label> <label class="radio-inline float-right">   <input type="radio" name="download_type" value="REQUIRE" > require</label> <label class="float-right option-advice"> 0 people choosed <em>require</em> and<br/>0 people choosed <em>create-project</em>. </label> <div class="float-right"> <button type="button" class="btn btn-phplibs float-right add-to-project-btn" data-name="calibrate/calibr8_gtm" data-version="1.0.1.0" data-vendor="calibrate"> <i class="fa fa-plus-circle"></i> Add to Project </button> <div class="clearfix" ></div> <a href rel="nofolow" data-package="calibr8_gtm" data-vendor="calibrate" data-version="1.0.1.0" class="btn btn-phplibs float-right download-btn"><i class="fa fa-download"></i> Download </a> </div> </h3> <img class="latest-version" src="/img/latest_version.jpg" alt="Download latest version of calibr8_gtm from vendor calibrate"> </div> <div id="collapse" class="collapse" role="tabpanel" aria-labelledby="heading"> <div class="card-block"> <strong>Requires</strong> <a href="/package/calibrate/calibr8_admin"><strong>calibrate/calibr8_admin</strong></a> Version <em>*</em><br/> </div> </div> </div> </div> <span onclick="ga('send', 'event', 'Client Download detail page', 'Client Download detail page')" >Composer command for our command line client (<a target="_blank" href="/php-composer-cloud-build-server">download client</a>)</span> <input type="text" class="form-control copy-to-clipboard" value="php-download require calibrate/calibr8_gtm"> <em class="mb-2 d-block">This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.</em> <span>Standard composer command</span> <input type="text" class="form-control copy-to-clipboard" value="composer require calibrate/calibr8_gtm"> <p></p> <p></p><h2 id='files'>The package calibrate/calibr8_gtm contains the following files</h2><input id='packageSearch' name='packageSearch' type='text' placeholder='Search files' class='form-control' style='display:none;' /><div class='file-wrapper'><span><i class='fa fa-spinner fa-pulse fa-2x fa-fw'></i> Loading the files please wait ....</span></div><div class='clearfix' ></div><p></p> <script> function initVersionSpecificActions() { $(".difference-btn").click(function (e) { showDialog("<em>require</em>" + "<br/>If this library should be a part of your project, then choose require. " + "It results in a zip file, which contains a vendor folder. In this vendor folder will be the library you downloaded. " + "There is a dummy index.php as a example to integrate the library." + "<br/><br/>" + "<em>create-project</em>" + "<br/>This option should be choosed, if you want to create a project at top of this code. " + "This option should be choosed if you download a PHP framework like Laravel, CakePHP, ..."); }); var downloadButton; var chosenDownloadType; var chosenPhpVersion; var loadingModal; var fileCheckInterval; var isFileCheckRequestRunning = false; $(".download-btn").click(function (e) { e.preventDefault(); downloadButton = $(e.target).closest("a"); chosenDownloadType = downloadButton.closest('.card').find("input[name^=download_type]:checked").val(); chosenPhpVersion = $("select[name='phpVersion']").val(); if (!chosenDownloadType) { showDialog("Please choose a download type require or create-project"); return; } loadingModal = $('#download-loading-dialog'); setLoadingModalContent( '<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i> Loading, please wait ...', 'Before you can download the PHP files, the dependencies should be resolved. <strong>This can take a few minutes.</strong> Please be patient.' ); loadingModal.modal('show'); checkIfFileIsReady(); fileCheckInterval = setInterval(checkIfFileIsReady, 3000); }); var checkIfFileIsReady = function () { if (isFileCheckRequestRunning) { return; } if (!apiKey) { window.location.href = "/users/register?rel=" + encodeURIComponent(window.location.href); return; } $.ajax(downloadDomain + '/api/v1/packages/start-download', { data: { version: downloadButton.data("version"), package: downloadButton.data("package"), vendor: downloadButton.data("vendor"), downloadType: chosenDownloadType, phpVersion: chosenPhpVersion }, headers: { "API-Key": apiKey }, type: 'GET', beforeSend: function () { isFileCheckRequestRunning = true; }, complete: function (xhr) { isFileCheckRequestRunning = false; var isError = true; var response = null; if (xhr.status === 200) { response = JSON.parse(xhr.responseText); if (typeof response.status === 'string') { if (response.status === 'complete' && typeof response.url === 'string') { clearFileCheckInterval(); location.href = response.url; return; } else if (response.status === 'pending') { isError = false; } } } else if (xhr.status === 403) { response = JSON.parse(xhr.responseText); switch (response.code) { case "no_subscription": window.location.href = "/billing?no_subscription=1"; break; } return; } if (isError) { clearFileCheckInterval(); setLoadingModalContent('<i class="fa fa-exclamation-triangle"></i> Internal error', 'Please try again later or <a href="mailto:jwwi2013@gmail.com">contact us</a>.', true); loadingModal.find('.close').removeClass('hidden'); setTimeout(function () { loadingModal.modal('hide'); }, 10 * 1000); } } }); }; function clearFileCheckInterval() { clearInterval(fileCheckInterval); fileCheckInterval = null; } function setLoadingModalContent(titleHtml, bodyHtml, isError) { var modalTitle = loadingModal.find('.modal-title'); var modalBody = loadingModal.find('.modal-body'); var errorClass = 'danger'; modalTitle.html(titleHtml); modalBody.html(bodyHtml); if (isError) { modalTitle.addClass(errorClass); } else { modalTitle.removeClass(errorClass); } } $(".add-to-project-btn").click(function (e) { let buttonElement = $(e.target).closest("button"); $.ajax("/project-positions/add", { data: "version=" + buttonElement.data("version") + '&name=' + buttonElement.data("name") + '&vendor=' + buttonElement.data("vendor") + '&add_type=REQUIRE', type: "POST", success: function (response) { response = JSON.parse(response); if (!response.success) { switch (response.errorCode) { case "no_active_project": showDialog("There is no active project."); break; case "already_added": showDialog("This item is already added to your project."); break; default: showDialog("There was an error. Please contact the support."); break; } } else { showSuccessToast("Item was added to the project."); } }, error: function (xhr, status) { if (xhr.status == 403) { window.location.href = "/users/register"; } else { showDialog("There was an error. Please contact the support."); } } }); }); } initVersionSpecificActions(); $(function () { $.get(downloadDomain + "/files-list/package-ajax/calibrate/calibr8_gtm", function (data) { $(".file-wrapper").html(data); if ($('.file-entry').length) { $("#packageSearch").show(); } // toggle folder on click //TODO: code is repeated $('.dir-entry').each(function (i, e) { $(e).click(function () { $(this).next().toggle(); $(this).find('.fa').toggleClass('fa-caret-down').toggleClass('fa-caret-right'); }); }); $('.collapse-all-folders').click(function () { $('.dir-entry').each(function (i, e) { $(e).next().hide(); $(this).find('.fa').removeClass('fa-caret-down').addClass('fa-caret-right'); }); $(this).hide(); $('.expand-all-folders').show(); }); $('.expand-all-folders').click(function () { $('.dir-entry').each(function (i, e) { $(e).next().show(); $(this).find('.fa').addClass('fa-caret-down').removeClass('fa-caret-right'); }); $(this).hide(); $('.collapse-all-folders').show(); }); }); }); $(".copy-to-clipboard").focus(function () { $(this).select(); copyTextToClipboard($(this).val()); showSuccessToast("Copied to clipboard!"); ga('send', 'event', 'Copied require cmd', 'Copied require cmd'); }); $("#packageSearch").keyup(function (event) { var indentLevels = [2, 4, 6, 8, 10, 12]; var files = $('.file-entry'); var dirs = $('.dir-entry'); var expandDirs = $('.expand-all-folders'); var collapseDirs = $('.collapse-all-folders'); files.hide(); expandDirs.click().hide(); collapseDirs.hide(); var txt = $(this).val(); files.each(function () { if ($(this).text().toUpperCase().indexOf(txt.toUpperCase()) !== -1) { $(this).show(); dirs.hide(); for (var i = 0; i < indentLevels.length; i++) { if (countInstances($(this).html(), 'nbsp') === indentLevels[i]) { $(this).addClass(indentLevels[i].toString()); break; } } $(this).html($(this).html().replace(/ /g, '')); } }); if ($(this).val() == '') { //TODO: simplify $('.dir-entry').show(); $('.2').prepend('  '); $('.4').prepend('    '); $('.6').prepend('      '); $('.8').prepend('        '); $('.10').prepend('          '); $('.12').prepend('            '); } if ($(this).val() === '') { dirs.show(); expandDirs.hide(); collapseDirs.show().click(); for (var i = 0; i < indentLevels.length; i++) { $('.' + indentLevels[i].toString()).prepend(' '.repeat(indentLevels[i])); } } }); function countInstances(string, word) { return string.split(word).length - 1; } $("#select-package-version select").change(function () { const select = $(this); const version = select.val(); $.get( '/details/version/' + select.data('vendor') + '/' + select.data('package') + '/' + version, function (data) { if (typeof data === 'string' && data.length > 0) { $("#accordion").html(data); initVersionSpecificActions(); var latestVersionImage = $('img.latest-version'); if (version !== select.data('latest-version')) { latestVersionImage.hide(); } else { latestVersionImage.show(); } } } ); }); </script> </main> <footer> <p></p> <div class="text-center">© 2017 - 2024 Weber Informatics LLC</div> </footer> <!-- ************************** DIALOGS ************************** --> <div class="modal" id="download-loading-dialog" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"><i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i> Loading please wait ...</h5> <button type="button" class="close hidden" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> Before you can download the PHP files, the dependencies should be resolved. <strong>This can take some minutes.</strong> Please be patient. </div> </div> </div> </div> <div class="modal fade" id="general-dialog" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-body"> CONTENT </div> <div class="modal-footer"> <button type="button" data-dismiss="modal" class="btn btn-phplibs btn-sm">OK</button> </div> </div> </div> </div> <!-- ************************** DIALOGS ************************** --> </body> </html>