macrob / binixo-lib
There is no license information available for the latest version (0.4.7) of this package.
php integration for binixo offerwall render
0.4.7
2025-04-10 14:57 UTC
Requires
- mobiledetect/mobiledetectlib: ^4.8.08
- phpmailer/phpmailer: ^6.8
- zordius/lightncandy: ^1.2
- dev-main
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.1
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
This package is auto-updated.
Last update: 2025-04-10 14:57:42 UTC
README
подготовка:
в директории лендоса SVN_REP/binixo.kz/ выполняем команду
composer require macrob/binixo-lib
отркрываем www/index.php
<?php include('../vendor/autoload.php'); define('APP_ROOT', realpath(__DIR__)); define('TMP_DIR', realpath(APP_ROOT . '/../tmp/'));
далеее есть 2 варианта использования
- вариант 1, полный серверный рендер
- вариант 2, частичный
Вариант 1:
full server render
на страницу /offers/index.html добавлям следующий код
<div id="offerwall"> <?php $biLib = new \BinixoLib\Offerwall(); $biLib->tpl = '1'; $biLib->lang = 'ru'; $biLib->currency = 'KZT'; $biLib->url = 'https://kz.binixocrm.com/fd/offerwall/lender/json2?id=6193a180100734dc7cf60c01'; $biLib->urlMob = 'https://kz.binixocrm.com/fd/offerwall/lender/json2?id=6193a1a2100734dc7cf60c2d'; $biLib->offerwallJs = 'https://cdn.binixocrm.com/js/v1/offerwall-0.0.1.js'; $biLib->injectJs(true); $biLib->render(); ?> </div>
и не забываем вставить трекинг
<script> window.addEventListener("load", async() => { tracking.doit(); }); </script>
Вариант 2:
на страницу /offers/index.html добавлям следующий код
<?php $biLib = new \BinixoLib\Offerwall(); $biLib->url = 'https://kz.binixocrm.com/fd/offerwall/lender/json2?id=6193a180100734dc7cf60c01'; $biLib->urlMob = 'https://kz.binixocrm.com/fd/offerwall/lender/json2?id=6193a1a2100734dc7cf60c2d'; $biLib->offerwallJs = 'https://cdn.binixocrm.com/js/v1/offerwall-0.0.1.js'; $biLib->injectJs(true); $biLib->printJsonOffersMob('offersMob'); $biLib->printJsonOffersDesktop('offersDesk'); ?>
<div id="offerwall"></div> <script> window.addEventListener("load", async() => { await ofr.render({ offers: { mob: offersMob, desktop: offersDesk }, selector: '#offerwall', currency: 'KZT', lang: 'ru' }); }); // TRACKING tracking.doit(); </script>