repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/entities/create.blade.php
Beam/extensions/beam-module/resources/views/entities/create.blade.php
@extends('beam::layouts.app') @section('title', 'Add entity') @section('content') <div class="c-header"> <h2>Add entity</h2> </div> <div class="container"> @include('flash::message') {{ html()->modelForm($entity)->route('entities.store')->attribute('class', 'entity-form')->open() }} @include('beam::entities._form') {{ html()->closeModelForm() }} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/conversions/index.blade.php
Beam/extensions/beam-module/resources/views/conversions/index.blade.php
@extends('beam::layouts.app') @section('title', 'Conversions') @section('content') <div class="c-header"> <h2>Conversions</h2> </div> <div class="well"> <div class="row"> <div class="col-md-6"> <h4>Filter by conversion date</h4> <div id="smart-range-selector"> {{ html()->hidden('conversion_from', $conversionFrom) }} {{ html()->hidden('conversion_to', $conversionTo) }} <smart-range-selector from="{{$conversionFrom}}" to="{{$conversionTo}}" :callback="callback"> </smart-range-selector> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h2>All conversions <small></small></h2> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'article.title' => [ 'header' => 'article', 'orderable' => false, 'priority' => 1, 'render' => 'link' ], 'content_type' => [ 'header' => 'Type', 'orderable' => false, 'filter' => $contentTypes, 'priority' => 2, 'visible' => count($contentTypes) > 1, ], 'article.authors[, ].name' => [ 'header' => 'authors', 'orderable' => false, 'filter' => $authors, 'priority' => 2, ], 'article.sections[, ].name' => [ 'header' => 'sections', 'orderable' => false, 'filter' => $sections, 'priority' => 4, ], 'article.tags[, ].name' => [ 'header' => 'tags', 'orderable' => false, 'filter' => $tags, 'priority' => 5, ], 'amount' => [ 'header' => 'amount', 'render' => 'number', 'priority' => 1, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'currency' => [ 'header' => 'currency', 'orderable' => false, 'priority' => 3, ], 'paid_at' => [ 'header' => 'paid at', 'render' => 'date', 'priority' => 2, ], ], 'dataSource' => route('conversions.json'), 'rowActions' => [ ['name' => 'show', 'class' => 'zmdi-palette-Cyan zmdi-info-outline', 'title' => 'Show conversions'], ], 'rowActionLink' => 'show', 'order' => [6, 'desc'], 'requestParams' => [ 'conversion_from' => '$(\'[name="conversion_from"]\').val()', 'conversion_to' => '$(\'[name="conversion_to"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="conversion_from"]' ], [ 'event' => 'change', 'selector' => '[name="conversion_to"]', ], ], 'exportColumns' => [0,1,2,3,4,5], ]) !!} </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selector", components: { SmartRangeSelector }, methods: { callback: function (from, to) { $('[name="conversion_from"]').val(from); $('[name="conversion_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/conversions/show.blade.php
Beam/extensions/beam-module/resources/views/conversions/show.blade.php
@extends('beam::layouts.app') @section('title', 'Conversion - ' . $conversion->id) @section('content') <div class="c-header"> <h2>Conversion detail</h2> </div> <div id="conversion-detail" class="col-md-12"> <div class="card"> <div class="card-header"> <h2> Conversion #{{ $conversion->id }} </h2> </div> <div class="card-body card-padding"> <dl class="dl-horizontal"> <dt>Article</dt> <dd><a href="{{ route('articles.show', $conversion->article->id) }}">{{ $conversion->article->title }}</a></dd> <dt>User ID</dt> <dd>{{ $conversion->user_id }}</dd> <dt>Amount</dt> <dd>{{ number_format($conversion->amount, 2) }} {{ $conversion->currency }}</dd> <dt>Paid at</dt> <dd><date-formatter date="{{$conversion->paid_at}}"></date-formatter></dd> </dl> <h4>User path</h4> <div class="list-group lg-alt lg-even-black"> @foreach($events as $event) <div class="list-group-item media"> <div class="media-body"> <div class="lgi-heading"> <small><date-formatter format="l LT" date="{{$event->time}}"></date-formatter></small> {{$event->name}} </div> <small class="lgi-text"></small> @if($event->tags) <ul class="lgi-attrs"> @foreach($event->tags as $tag) <li> @if(isset($tag->href)) <a href="{{$tag->href}}">{{$tag->title}}</a> @else {{$tag->title}} @endif </li> @endforeach </ul> @endif </div> </div> @endforeach </div> </div> </div> </div> <script type="text/javascript"> new Vue({ el: "#conversion-detail", components: { DateFormatter } }) </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/sections/index.blade.php
Beam/extensions/beam-module/resources/views/sections/index.blade.php
@extends('beam::layouts.app') @section('title', 'Sections') @section('content') <div class="c-header"> <h2>Sections</h2> </div> <div class="well"> <div id="smart-range-selectors" class="row"> <div class="col-md-4"> <h4>Filter by publish date</h4> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callbackPublished"> </smart-range-selector> </div> <div class="col-md-4"> <h4>Filter by conversion date</h4> {{ html()->hidden('conversion_from', $conversionFrom) }} {{ html()->hidden('conversion_to', $publishedTo) }} <smart-range-selector from="{{$conversionFrom}}" to="{{$conversionTo}}" :callback="callbackConversion"> </smart-range-selector> </div> <div class="col-md-2"> <h4>Filter by article content type</h4> {{ html()->hidden('content_type', $contentType) }} <v-select name="content_type_select" :options="contentTypes" value="{{$contentType}}" title="all" liveSearch="false" v-on:input="callbackContentType" ></v-select> </div> </div> </div> <div class="card"> <div class="card-header"> <h2>Section stats <small></small></h2> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'header' => 'section', 'orderable' => false, 'filter' => $sections, 'priority' => 1, 'render' => 'link', ], 'articles_count' => [ 'header' => 'articles', 'priority' => 3, 'searchable' => false, 'orderSequence' => ['desc', 'asc'], 'render' => 'number', 'className' => 'text-right' ], 'conversions_count' => [ 'header' => 'conversions', 'priority' => 2, 'searchable' => false, 'orderSequence' => ['desc', 'asc'], 'render' => 'number', 'className' => 'text-right' ], 'conversions_amount' => [ 'header' => 'amount', 'render' => 'array', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_all' => [ 'header' => 'all pageviews', 'render' => 'number', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_not_subscribed' => [ 'header' => 'not subscribed pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_subscribers' => [ 'header' => 'subscriber pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_all' => [ 'header' => 'avg time all', 'render' => 'duration', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_not_subscribed' => [ 'header' => 'avg time not subscribed', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_subscribers' => [ 'header' => 'avg time subscribers', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], ], 'dataSource' => route('sections.dtSections'), 'order' => [2, 'desc'], 'requestParams' => [ 'published_from' => '$(\'[name="published_from"]\').val()', 'published_to' => '$(\'[name="published_to"]\').val()', 'conversion_from' => '$(\'[name="conversion_from"]\').val()', 'conversion_to' => '$(\'[name="conversion_to"]\').val()', 'content_type' => '$(\'[name="content_type"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="published_from"]' ], [ 'event' => 'change', 'selector' => '[name="published_to"]', ], [ 'event' => 'change', 'selector' => '[name="conversion_from"]' ], [ 'event' => 'change', 'selector' => '[name="conversion_to"]', ], [ 'event' => 'change', 'selector' => '[name="content_type"]', ], ], 'exportColumns' => [0,1,2,3,4,5,6,7,8,9], ]) !!} </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selectors", components: { SmartRangeSelector, vSelect }, data: function () { return { contentTypes: {!! @json($contentTypes) !!} } }, methods: { callbackPublished: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); }, callbackConversion: function (from, to) { $('[name="conversion_from"]').val(from); $('[name="conversion_to"]').val(to).trigger("change"); }, callbackContentType: function (contentType) { $('[name="content_type"]').val(contentType).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/sections/show.blade.php
Beam/extensions/beam-module/resources/views/sections/show.blade.php
@extends('beam::layouts.app') @section('title', 'Show section - ' . $section->name) @section('content') <div class="c-header"> <h2>{{ $section->name }}</h2> </div> <div class="well"> <div class="row"> <div class="col-md-6"> <h4>Filter by publish date</h4> <div id="smart-range-selector"> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callback"> </smart-range-selector> </div> </div> </div> </div> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h2>Show section <small>{{ $section->name }}</small></h2> </div> @include('beam::articles.subviews.dt_articles', ['dataSource' => route('sections.dtArticles', $section)]) </div> </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selector", components: { SmartRangeSelector }, methods: { callback: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/sections/segments/compute.blade.php
Beam/extensions/beam-module/resources/views/sections/segments/compute.blade.php
@extends('beam::layouts.app') @section('title', 'Sections\' segments') @section('content') <div class="c-header"> <h2>Sections' segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Configuration <small></small></h2> </div> <div class="card-body card-padding"> Computation initiated, results will be sent to <b>{{ $email }}</b>. </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/sections/segments/_test_form.blade.php
Beam/extensions/beam-module/resources/views/sections/segments/_test_form.blade.php
<form method="post" action="{{ route('sectionSegments.compute') }}"> <form-validator url="{{route('sectionSegments.validateTest')}}"></form-validator> <div class="col-md-6"> {{ csrf_field() }} <p class="c-black f-500 m-b-10">Minimal ratio of (author articles/all articles) read by user:</p> <div class="form-group"> <div class="fg-line"> <input id="min_ratio" class="form-control input-sm" value="{{ old('min_ratio') }}" name="min_ratio" required placeholder="e.g. 0.25 (value between 0.0 - 1.0)" type="number" step="0.01" min="0" max="1" /> </div> </div> <p class="c-black f-500 m-b-10">Minimal number of author articles read by user:</p> <div class="form-group"> <div class="fg-line"> <input id="min_views" class="form-control input-sm" value="{{ old('min_views') }}" placeholder="e.g. 5" required name="min_views" min="0" type="number" /> </div> </div> <p class="c-black f-500 m-b-10">Minimal average time spent on author's articles by user (seconds):</p> <div class="form-group"> <div class="fg-line"> <input id="min_average_timespent" class="form-control input-sm" value="{{ old('min_average_timespent') }}" required placeholder="e.g. 120 (value in seconds)" name="min_average_timespent" min="0" type="number" /> </div> </div> <p class="c-black f-500 m-b-10">Use data from the last:</p> <div class="radio m-b-15"> <label> {{ html()->radio('history', true, '30') }} <i class="input-helper"></i> 30 days </label> </div> <div class="radio m-b-15"> <label> {{ html()->radio('history', false, '60') }} <i class="input-helper"></i> 60 days </label> </div> <div class="radio m-b-15"> <label> {{ html()->radio('history', false, '90') }} <i class="input-helper"></i> 90 days </label> </div> <div class="form-group"> <div class="fg-line"> <input id="email" class="form-control input-sm" value="{{ old('email') }}" placeholder="Email to send results" name="email" type="text" required /> </div> </div> <input class="btn palette-Cyan bg waves-effect" type="submit" value="Compute" /> </div> </form>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/sections/segments/configuration.blade.php
Beam/extensions/beam-module/resources/views/sections/segments/configuration.blade.php
@extends('beam::layouts.app') @section('title', 'Sections\' segments') @section('content') <div class="c-header"> <h2>Sections' segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Test parameters<small></small></h2> </div> <div class="card-body card-padding"> <p>Here you can quickly test arbitrary parameters without recomputing the actual segments. <br /> After test parameters are specified, results containing number of users/browsers present in the segment of each section will be sent to provided email. </p> <div class="row"> @include('beam::sections.segments._test_form') </div> </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/sections/segments/results_email.blade.php
Beam/extensions/beam-module/resources/views/sections/segments/results_email.blade.php
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Sections Segments Results</title> </head> <body> <h3>Configuration</h3> <ul> <li>number of past days from which results are counted: <b>{{$history_days}}</b></li> <li>minimal ratio of (section articles/all articles): <b>{{$minimal_ratio}}</b></li> <li>minimal number of views or section articles: <b>{{$minimal_views}}</b> <br/></li> <li>minimal average time spent on section articles: <b>{{$minimal_average_timespent}}</b></li> </ul> <h3>Results</h3> @if($results) <table> <tr> <th>Section Segment</th> <th>Browsers Count</th> <th>Users Count</th> </tr> @foreach ($results as $row) <tr> <td>{{$row->name}}</td> <td>{{$row->browser_count}}</td> <td>{{$row->user_count}}</td> </tr> @endforeach </table> @else <p>No section segments found for given configuration.</p> @endif </body> </html>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/sections/segments/index.blade.php
Beam/extensions/beam-module/resources/views/sections/segments/index.blade.php
@extends('beam::layouts.app') @section('title', 'Section Segments') @section('content') <div class="c-header"> <h2>Section Segments</h2> </div> <div class="card"> <div class="card-header"> <h2>List of section segments <small></small></h2> <div class="actions"> <div class="dropdown"> <a href="#" class="dropdown-toggle btn btn-info palette-Cyan bg waves-effect" data-toggle="dropdown" aria-expanded="false"><i class="zmdi zmdi-settings"></i> More options</a> <ul class="dropdown-menu"> <li role="presentation"><a role="menuitem" tabindex="-1" href="{{ $sectionSegmentsSettingsUrl }}">Configuration</a></li> <li role="presentation"><a role="menuitem" tabindex="-1" href="{{ route('sectionSegments.testingConfiguration') }}">Test parameters</a></li> </ul> </div> </div> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'priority' => 2, 'render' => 'text', ], 'code' => [ 'priority' => 2, 'render' => 'text', ], 'users_count' => [ 'header' => 'Users count', 'priority' => 1, 'className' => 'text-right', ], 'browsers_count' => [ 'header' => 'Browsers count', 'priority' => 2, 'className' => 'text-right', ], 'created_at' => [ 'render' => 'date', 'header' => 'Created at', 'priority' => 3, 'className' => 'text-right', ], ], 'dataSource' => route('sectionSegments.json'), 'order' => [2, 'desc'], 'exportColumns' => [0,1,2,3,4], ]) !!} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/tags/index.blade.php
Beam/extensions/beam-module/resources/views/tags/index.blade.php
@extends('beam::layouts.app') @section('title', 'Tags') @section('content') <div class="c-header"> <h2>Tags</h2> </div> <div class="well"> <div id="smart-range-selectors" class="row"> <div class="col-md-4"> <h4>Filter by publish date</h4> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callbackPublished"> </smart-range-selector> </div> <div class="col-md-4"> <h4>Filter by conversion date</h4> {{ html()->hidden('conversion_from', $conversionFrom) }} {{ html()->hidden('conversion_to', $conversionTo) }} <smart-range-selector from="{{$conversionFrom}}" to="{{$conversionTo}}" :callback="callbackConversion"> </smart-range-selector> </div> <div class="col-md-2"> <h4>Filter by article content type</h4> {{ html()->hidden('content_type', $contentType) }} <v-select name="content_type_select" :options="contentTypes" value="{{$contentType}}" title="all" liveSearch="false" v-on:input="callbackContentType" ></v-select> </div> </div> </div> <div class="card"> <div class="card-header"> <h2>Tag stats <small></small></h2> </div> @include('beam::tags.subviews.dt_tags', ['dataSource' => route('tags.dtTags')]) </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selectors", components: { SmartRangeSelector, vSelect }, data: function () { return { contentTypes: {!! @json($contentTypes) !!} } }, methods: { callbackPublished: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); }, callbackConversion: function (from, to) { $('[name="conversion_from"]').val(from); $('[name="conversion_to"]').val(to).trigger("change"); }, callbackContentType: function (contentType) { $('[name="content_type"]').val(contentType).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/tags/show.blade.php
Beam/extensions/beam-module/resources/views/tags/show.blade.php
@extends('beam::layouts.app') @section('title', 'Show tag - ' . $tag->name) @section('content') <div class="c-header"> <h2>{{ $tag->name }}</h2> </div> <div class="well"> <div class="row"> <div class="col-md-6"> <h4>Filter by publish date</h4> <div id="smart-range-selector"> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callback"> </smart-range-selector> </div> </div> </div> </div> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h2>Show tag <small>{{ $tag->name }}</small></h2> </div> @include('beam::articles.subviews.dt_articles', ['dataSource' => route('tags.dtArticles', $tag)]) </div> </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selector", components: { SmartRangeSelector }, methods: { callback: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/tags/subviews/dt_tags.blade.php
Beam/extensions/beam-module/resources/views/tags/subviews/dt_tags.blade.php
{!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'header' => 'tag', 'orderable' => false, 'filter' => $tags, 'priority' => 1, 'render' => 'link', ], 'articles_count' => [ 'header' => 'articles', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'render' => 'number', 'className' => 'text-right' ], 'conversions_count' => [ 'header' => 'conversions', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'render' => 'number', 'className' => 'text-right' ], 'conversions_amount' => [ 'header' => 'amount', 'render' => 'array', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_all' => [ 'header' => 'all pageviews', 'render' => 'number', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_not_subscribed' => [ 'header' => 'not subscribed pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_subscribers' => [ 'header' => 'subscriber pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_all' => [ 'header' => 'avg time all', 'render' => 'duration', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_not_subscribed' => [ 'header' => 'avg time not subscribed', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_subscribers' => [ 'header' => 'avg time subscribers', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], ], 'dataSource' => $dataSource, 'order' => [2, 'desc'], 'requestParams' => [ 'published_from' => '$(\'[name="published_from"]\').val()', 'published_to' => '$(\'[name="published_to"]\').val()', 'conversion_from' => '$(\'[name="conversion_from"]\').val()', 'conversion_to' => '$(\'[name="conversion_to"]\').val()', 'content_type' => '$(\'[name="content_type"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="published_from"]' ], [ 'event' => 'change', 'selector' => '[name="published_to"]', ], [ 'event' => 'change', 'selector' => '[name="conversion_from"]' ], [ 'event' => 'change', 'selector' => '[name="conversion_to"]', ], [ 'event' => 'change', 'selector' => '[name="content_type"]', ], ], 'exportColumns' => [0,1,2,3,4,5,6,7,8,9], ]) !!}
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/articles/pageviews.blade.php
Beam/extensions/beam-module/resources/views/articles/pageviews.blade.php
@extends('beam::layouts.app') @section('title', 'Articles - Pageview stats') @section('content') <div class="c-header"> <h2>Articles - Pageview stats</h2> </div> <div class="well"> <div class="row"> <div class="col-md-6"> <h4>Filter by publish date</h4> <div id="smart-range-selector"> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callback"> </smart-range-selector> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h2>Pageview stats <small></small></h2> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'title' => [ 'orderable' => false, 'priority' => 1, 'render' => 'link' ], 'pageviews_all' => [ 'header' => 'all pageviews', 'render' => 'number', 'searchable' => false, 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'pageviews_signed_in' => [ 'header' => 'signed in pageviews', 'render' => 'number', 'searchable' => false, 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'pageviews_subscribers' => [ 'header' => 'subscriber pageviews', 'render' => 'number', 'searchable' => false, 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'pageviews_subscribers_ratio' => [ 'header' => 'subscriber pageviews ratio', 'render' => 'percentage', 'searchable' => false, 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'avg_sum_all' => [ 'header' => 'avg time all', 'render' => 'duration', 'searchable' => false, 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'avg_sum_signed_in' => [ 'header' => 'avg time signed in', 'render' => 'duration', 'searchable' => false, 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'avg_sum_subscribers' => [ 'header' => 'avg time subscribers', 'render' => 'duration', 'searchable' => false, 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'className' => 'text-right', ], 'content_type' => [ 'header' => 'Type', 'orderable' => false, 'filter' => $contentTypes, 'priority' => 2, 'visible' => count($contentTypes) > 1, ], 'authors' => [ 'header' => 'authors', 'orderable' => false, 'filter' => $authors, 'priority' => 3, 'render' => 'raw', ], 'sections[, ].name' => [ 'header' => 'sections', 'orderable' => false, 'filter' => $sections, 'priority' => 4, ], 'tags[, ].name' => [ 'header' => 'tags', 'orderable' => false, 'filter' => $tags, 'priority' => 5, ], 'published_at' => [ 'header' => 'published', 'render' => 'date', 'priority' => 1, ], ], 'dataSource' => route('articles.dtPageviews'), 'order' => [4, 'desc'], 'requestParams' => [ 'published_from' => '$(\'[name="published_from"]\').val()', 'published_to' => '$(\'[name="published_to"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="published_from"]' ], [ 'event' => 'change', 'selector' => '[name="published_to"]', ], ], 'exportColumns' => [0,1,2,3,4,5,6,7,8,9,10,11], ]) !!} </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selector", components: { SmartRangeSelector }, methods: { callback: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/articles/conversions.blade.php
Beam/extensions/beam-module/resources/views/articles/conversions.blade.php
@extends('beam::layouts.app') @section('title', 'Articles - Conversion stats') @section('content') <div class="c-header"> <h2>Articles - Conversion stats</h2> </div> <div class="well"> <div id="smart-range-selectors" class="row"> <div class="col-md-4"> <h4>Filter by article publish date</h4> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callbackPublished"> </smart-range-selector> </div> <div class="col-md-4"> <h4>Filter by conversion date</h4> {{ html()->hidden('conversion_from', $conversionFrom) }} {{ html()->hidden('conversion_to', $conversionTo) }} <smart-range-selector from="{{$conversionFrom}}" to="{{$conversionTo}}" :callback="callbackConversion"> </smart-range-selector> </div> </div> </div> <div class="card"> <div class="card-header"> <h2>Conversion stats <small></small></h2> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'title' => [ 'orderable' => false, 'priority' => 1, 'render' => 'link', ], 'conversions_count' => [ 'header' => 'conversions', 'searchable' => false, 'orderSequence' => ['desc', 'asc'], 'priority' => 2, 'className' => 'text-right', ], 'conversions_rate' => [ 'searchable' => false, 'header' => 'conversions rate', 'orderSequence' => ['desc', 'asc'], 'priority' => 2, 'className' => 'text-right', 'tooltip' => 'The rate between conversions count and all article pageviews.' ], 'amount' => [ 'header' => 'amount', 'orderSequence' => ['desc', 'asc'], 'render' => 'array', 'priority' => 1, 'searchable' => false, 'className' => 'text-right', ], 'average' => [ 'header' => 'average', 'render' => 'array', 'orderSequence' => ['desc', 'asc'], 'priority' => 2, 'searchable' => false, 'className' => 'text-right', ], 'content_type' => [ 'header' => 'Type', 'orderable' => false, 'filter' => $contentTypes, 'priority' => 2, 'visible' => count($contentTypes) > 1, ], 'authors' => [ 'header' => 'authors', 'orderable' => false, 'filter' => $authors, 'priority' => 2, 'render' => 'raw', ], 'sections[, ].name' => [ 'header' => 'sections', 'orderable' => false, 'filter' => $sections, 'priority' => 3, ], 'tags[, ].name' => [ 'header' => 'tags', 'orderable' => false, 'filter' => $tags, 'priority' => 4, ], 'published_at' => [ 'searchable' => false, 'header' => 'published', 'render' => 'date', 'priority' => 3, ], ], 'dataSource' => route('articles.dtConversions'), 'order' => [1, 'desc'], 'requestParams' => [ 'published_from' => '$(\'[name="published_from"]\').val()', 'published_to' => '$(\'[name="published_to"]\').val()', 'conversion_from' => '$(\'[name="conversion_from"]\').val()', 'conversion_to' => '$(\'[name="conversion_to"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="published_from"]' ], [ 'event' => 'change', 'selector' => '[name="published_to"]', ], [ 'event' => 'change', 'selector' => '[name="conversion_from"]' ], [ 'event' => 'change', 'selector' => '[name="conversion_to"]', ], ], 'exportColumns' => [0,1,2,3,4,5,6,7], ]) !!} </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selectors", components: { SmartRangeSelector }, methods: { callbackPublished: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); }, callbackConversion: function (from, to) { $('[name="conversion_from"]').val(from); $('[name="conversion_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/articles/show.blade.php
Beam/extensions/beam-module/resources/views/articles/show.blade.php
@extends('beam::layouts.app') @section('title', 'Show article - ' . $article->title) @section('content') <div class="c-header"> <h2>Article Details</h2> </div> <div id="article-vue-wrapper"> <div class="card" id="profile-main"> <div class="pm-overview" style="overflow: visible;"> <div class="pmo-pic"> <div > <a href="{{$article->url}}"> <img class="img-responsive" src="{{$article->image_url}}" alt=""> </a> </div> </div> <div class="pmo-block" style="margin-top: 0px; padding-top:0px"> <h2>{{ $article->title }}</h2> <b>{{$article->authors->implode('name', ', ')}}</b><br /> <date-formatter date="{{$article->published_at}}"></date-formatter> </div> </div> <div class="pm-body clearfix"> <div class="pmb-block"> <div class="pmbb-header"> <h2><i class="zmdi zmdi-library m-r-5"></i> Article Information</h2> </div> <div class="pmbb-body p-l-30"> <div class="pmbb-view"> <dl class="dl-horizontal"> <dt>External ID</dt> <dd>{{$article->external_id}}</dd> </dl> <dl class="dl-horizontal"> <dt>Content Type</dt> <dd>{{$article->content_type}}</dd> </dl> <dl class="dl-horizontal"> <dt>Property</dt> <dd><a href="{{ route('accounts.properties.index', $article->property->account->id) }}">{{$article->property->name}}</a></dd> </dl> <dl class="dl-horizontal"> <dt>URL</dt> <dd><a href="{{$article->url}}">{{$article->url}}</a></dd> </dl> <dl class="dl-horizontal"> <dt>Title</dt> <dd>{{$article->title}}</dd> </dl> <dl class="dl-horizontal"> <dt>Authors</dt> <dd> @foreach ($article->authors as $author) <a href="{{ route('authors.show', $author->id) }}">{{ $author->name }}</a>@if(!$loop->last), @endif @endforeach </dd> </dl> <dl class="dl-horizontal"> <dt>Sections</dt> <dd> @if($article->sections->count() > 0) @foreach ($article->sections as $section) {{ $section->name }}@if(!$loop->last), @endif @endforeach @else - @endif </dd> </dl> <dl class="dl-horizontal"> <dt>Tags</dt> <dd> @if($article->tags->count() > 0) @foreach ($article->tags as $tag) {{ $tag->name }}@if(!$loop->last), @endif @endforeach @else - @endif </dd> </dl> <dl class="dl-horizontal"> <dt>Published at</dt> <dd> <date-formatter date="{{$article->published_at}}"></date-formatter> </dd> </dl> <dl class="dl-horizontal"> <dt>Created at</dt> <dd> <date-formatter date="{{$article->created_at}}"></date-formatter> </dd> </dl> <dl class="dl-horizontal"> <dt>Updated at</dt> <dd> <date-formatter date="{{$article->updated_at}}"></date-formatter> </dd> </dl> </div> </div> </div> <div class="pmb-block"> <div class="pmbb-header"> <h2><i class="zmdi zmdi-money m-r-5"></i> Conversions</h2> </div> <div class="pmbb-body p-l-30"> <div class="pmbb-view"> <dl class="dl-horizontal"> <dt>Total conversions</dt> <dd>{{$article->conversions->count()}}</dd> </dl> <dl class="dl-horizontal"> <dt> <span data-toggle="tooltip" data-placement="top" title="" data-original-title="Ratio of new conversions and unique visitors">Conversion rate</span> </dt> <dd>{{$article->conversion_rate}}</dd> </dl> <dl class="dl-horizontal"> <dt>New conversions</dt> <dd>{{$article->new_conversions_count}}</dd> </dl> <dl class="dl-horizontal"> <dt><span data-toggle="tooltip" data-placement="top" title="" data-original-title="Users who already had a subscription in the past">Renewed conversions</span></dt> <dd>{{$article->renewed_conversions_count}}</dd> </dl> <dl class="dl-horizontal"> <dt>Conversions amount</dt> <dd>{{ $conversionsSums }}</dd> </dl> </div> </div> </div> <div class="pmb-block"> <div class="pmbb-header"> <h2><i class="zmdi zmdi-equalizer m-r-5"></i> Retention</h2> </div> <div class="pmbb-body p-l-30"> <div class="pmbb-view"> <dl class="dl-horizontal"> <dt>Pageviews subscribers</dt> <dd>{{$article->pageviews_subscribers}} (<b>{{number_format($pageviewsSubscribersToAllRatio, 4)}}%</b> of all views)</dd> </dl> <dl class="dl-horizontal"> <dt>Pageviews signed-in</dt> <dd>{{$article->pageviews_signed_in}}</dd> </dl> <dl class="dl-horizontal"> <dt>Pageviews all</dt> <dd>{{$article->pageviews_all}}</dd> </dl> </div> </div> </div> <div class="pmb-block"> <div class="pmbb-header"> <h2><i class="zmdi zmdi-time m-r-5"></i> Time spent</h2> </div> <div class="pmbb-body p-l-30"> <div class="pmbb-view"> <dl class="dl-horizontal"> <dt>Avg time subscribers</dt> <dd>{{ $averageTimeSpentSubscribers }}</dd> </dl> <dl class="dl-horizontal"> <dt>Avg time signed-in</dt> <dd>{{ $averageTimeSpentSignedId }}</dd> </dl> <dl class="dl-horizontal"> <dt>Avg time all</dt> <dd>{{ $averageTimeSpentAll }}</dd> </dl> </div> </div> </div> @widgetGroup('article.show.info') </div> </div> <article-details :has-title-variants="{{$article->has_title_variants ? 'true' : 'false'}}" :has-image-variants="{{$article->has_image_variants ? 'true' : 'false'}}" :url="url" :variants-url="variantsUrl" :default-graph-data-source="defaultGraphDataSource" :external-events="externalEvents" ref="histogram"> </article-details> </div> <script type="text/javascript"> new Vue({ el: "#article-vue-wrapper", components: { ArticleDetails, DateFormatter }, created: function() { document.addEventListener('visibilitychange', this.visibilityChanged) }, beforeDestroy: function() { document.removeEventListener('visibilitychange', this.visibilityChanged) }, data: function() { return { url: "{!! route('articles.timeHistogram.json', $article->id) !!}", variantsUrl: "{!! route('articles.variantsHistogram.json', $article->id) !!}", externalEvents: {!! @json($externalEvents) !!}, defaultGraphDataSource: "{!! config('beam.article_traffic_graph_data_source') !!}", } } }) </script> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h2>Referer stats <small></small></h2> <div id="smart-range-selector"> {{ html()->hidden('visited_from', $visitedFrom) }} {{ html()->hidden('visited_to', $visitedTo) }} <smart-range-selector from="{{$visitedFrom}}" to="{{$visitedTo}}" :callback="callback"> </smart-range-selector> </div> </div> <script> $.fn.dataTables['render']['referer_medium'] = function () { return function(data) { var colors = {!! @json($mediumColors) !!}; return "<span style='font-size: 18px; color:" + colors[data] + "'>●</span> " + data; } }; </script> {!! Widget::run('DataTable', [ 'paging' => [[10,30,100], 30], 'colSettings' => [ 'derived_referer_medium' => [ 'header' => 'medium', 'orderable' => false, 'filter' => $mediums, 'priority' => 1, 'render' => 'referer_medium', ], 'source' => [ 'header' => 'source', 'searchable' => false, 'orderable' => false, 'priority' => 1, ], 'visits_count' => [ 'header' => 'visits count', 'searchable' => false, 'priority' => 1, 'orderSequence' => ['desc', 'asc'], 'render' => 'number', 'className' => 'text-right', ], 'first_conversion_source_count' => [ 'header' => 'first conversion source count', 'searchable' => false, 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'render' => 'number', 'className' => 'text-right', ], 'last_conversion_source_count' => [ 'header' => 'last conversion source count', 'searchable' => false, 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'render' => 'number', 'className' => 'text-right', ], ], 'dataSource' => route('articles.dtReferers', $article->id), 'order' => [2, 'desc'], 'requestParams' => [ 'visited_from' => '$(\'[name="visited_from"]\').val()', 'visited_to' => '$(\'[name="visited_to"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone', ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="visited_from"]' ], [ 'event' => 'change', 'selector' => '[name="visited_to"]', ] ], ]) !!} </div> </div> </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selector", components: { SmartRangeSelector }, methods: { callback: function (from, to) { $('[name="visited_from"]').val(from); $('[name="visited_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/articles/subviews/dt_articles.blade.php
Beam/extensions/beam-module/resources/views/articles/subviews/dt_articles.blade.php
{!! Widget::run('DataTable', [ 'colSettings' => [ 'title' => [ 'orderable' => false, 'priority' => 1, 'render' => 'link', ], 'pageviews_all' => [ 'header' => 'all pageviews', 'render' => 'number', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'pageviews_signed_in' => [ 'header' => 'signed in pageviews', 'render' => 'number', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'pageviews_subscribers' => [ 'header' => 'subscriber pageviews', 'render' => 'number', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'avg_timespent_all' => [ 'header' => 'avg time all', 'render' => 'duration', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'avg_timespent_signed_in' => [ 'header' => 'avg time signed in', 'render' => 'duration', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'avg_timespent_subscribers' => [ 'header' => 'avg time subscribers', 'render' => 'duration', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'conversions_count' => [ 'header' => 'conversions', 'render' => 'number', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'conversions_sum' => [ 'header' => 'amount', 'render' => 'array', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'conversions_avg' => [ 'header' => 'avg amount', 'render' => 'array', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, ], 'content_type' => [ 'header' => 'Type', 'orderable' => false, 'filter' => $contentTypes, 'priority' => 2, 'visible' => count($contentTypes) > 1 ], 'sections[, ].name' => [ 'header' => 'sections', 'orderable' => false, 'filter' => $sections, 'priority' => 4, ], 'authors[, ].name' => [ 'header' => 'authors', 'orderable' => false, 'filter' => $authors, 'priority' => 5, ], 'tags[, ].name' => [ 'header' => 'tags', 'orderable' => false, 'filter' => $tags, 'priority' => 6, ], 'published_at' => [ 'header' => 'published', 'render' => 'date', 'priority' => 5, 'searchable' => false, ], ], 'dataSource' => $dataSource, 'order' => [7, 'desc'], 'requestParams' => [ 'published_from' => '$(\'[name="published_from"]\').val()', 'published_to' => '$(\'[name="published_to"]\').val()' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="published_from"]' ], [ 'event' => 'change', 'selector' => '[name="published_to"]', ], ], ]) !!}
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/edit.blade.php
Beam/extensions/beam-module/resources/views/segments/edit.blade.php
@extends('beam::layouts.app') @section('title', 'Edit segment') @section('content') <div class="c-header"> <h2>Segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Edit segment / <small>{{ $segment->name }}</small></h2> <p>Try <a href="{{ route('segments.beta.edit', $segment) }}" title="Beta version of new segment builder">beta version of new segment builder</a>.</p> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($segment, 'PATCH')->route('segments.update', $segment)->open() }} @include('beam::segments._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/_form.blade.php
Beam/extensions/beam-module/resources/views/segments/_form.blade.php
<div id="segment-form"> <segment-form></segment-form> </div> @push('scripts') <script type="text/javascript"> let segment = {{ Illuminate\Support\Js::from([ "name" => $segment->name, "code" => $segment->code, "active" => $segment->active, "rules" => $segment->rules, "removedRules" => $segment->removedRules, "eventCategories" => $categories, "eventActions" => [], ]) }}; remplib.segmentForm.bind("#segment-form", segment); </script> @endpush
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/index.blade.php
Beam/extensions/beam-module/resources/views/segments/index.blade.php
@extends('beam::layouts.app') @section('title', 'Segments') @section('content') <div class="c-header"> <h2>Segments</h2> </div> <div class="card"> <div class="card-header"> <h2>List of segments <small></small></h2> <div class="actions"> <a href="{{ route('segments.create') }}" class="btn palette-Cyan bg waves-effect">Add new segment</a> </div> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'priority' => 1, 'render' => 'link' ], 'code' => [ 'priority' => 2, ], 'active' => [ 'render' => 'boolean', 'header' => 'Is active', 'priority' => 2, ], 'created_at' => [ 'render' => 'date', 'header' => 'Created at', 'priority' => 3, ], 'updated_at' => [ 'render' => 'date', 'header' => 'Updated at', 'priority' => 1, ], ], 'dataSource' => route('segments.json'), 'rowActions' => [ ['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit segment'], ['name' => 'copy', 'class' => 'zmdi-palette-Cyan zmdi-copy', 'title' => 'Copy segment'], ], 'rowActionLink' => 'edit', 'order' => [4, 'desc'], ]) !!} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/create.blade.php
Beam/extensions/beam-module/resources/views/segments/create.blade.php
@extends('beam::layouts.app') @section('title', 'Add segment') @section('content') <div class="c-header"> <h2>Segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Add new segment</h2> <p>Try <a href="{{ route('segments.beta.create') }}" title="Beta version of new segment builder">beta version of new segment builder</a>.</p> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($segment)->route('segments.store')->open() }} @include('beam::segments._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/beta/edit.blade.php
Beam/extensions/beam-module/resources/views/segments/beta/edit.blade.php
@extends('beam::layouts.app') @section('title', 'Edit segment (beta version)') @section('content') <div class="c-header"> <h2>Segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Edit segment / <small>{{ $segment->name }}</small> <i>(beta version)</i></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($segment, 'PATCH')->route('segments.update', $segment)->open() }} @include('beam::segments.beta._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/beta/embed.blade.php
Beam/extensions/beam-module/resources/views/segments/beta/embed.blade.php
<script src="{{ asset('/vendor/beam/iframeResizer/iframeResizer.contentWindow.min.js') }}"></script> <script type="text/javascript"> window.Segments = { config: { @if ($segment) SEGMENT_ID: {{ $segment->id }}, @endif API_HOST: "{{ config('services.remp.beam.segments_addr') }}", @if (config('services.remp.beam.segmenter.auth_token')) AUTH_TOKEN: "{{ config('services.remp.beam.segments_auth_token') }}", @endif CANCEL_PATH: "{{ route('segments.index') }}" } }; </script> <div id="app"></div> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel=stylesheet> <link rel="stylesheet" href="{{ asset('/vendor/beam/segmenter/css/chunk-vendors.css') }}"> <link rel="stylesheet" href="{{ asset('/vendor/beam/segmenter/css/app.css') }}"> <script type="text/javascript" src="{{ asset('/vendor/beam/segmenter/js/chunk-vendors.js') }}"></script> <script type="text/javascript" src="{{ asset('/vendor/beam/segmenter/js/app.js') }}"></script>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/beta/_form.blade.php
Beam/extensions/beam-module/resources/views/segments/beta/_form.blade.php
<script src="{{ asset('/vendor/beam/iframeResizer/iframeResizer.min.js') }}"></script> <iframe id="outside" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" src="{{ route('segments.beta.embed', ['segmentId' => ($segment->id ?? null)]) }}"></iframe> <script type="text/javascript"> $(function() { iFrameResize({ log: false, heightCalculationMethod: 'max' }, '#outside'); }); </script>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/segments/beta/create.blade.php
Beam/extensions/beam-module/resources/views/segments/beta/create.blade.php
@extends('beam::layouts.app') @section('title', 'Add segment (beta version)') @section('content') <div class="c-header"> <h2>Segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Add new segment <i>(beta version)</i></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($segment)->route('segments.store')->open() }} @include('beam::segments.beta._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/properties/edit.blade.php
Beam/extensions/beam-module/resources/views/properties/edit.blade.php
@extends('beam::layouts.app') @section('title', 'Edit property') @section('content') <div class="c-header"> <h2>Properties</h2> </div> <div class="card"> <div class="card-header"> <h2>Edit property <small>{{ $property->name }}</small></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($property, 'PATCH')->route('accounts.properties.update', ['account' => $account, 'property' => $property])->open() }} @include('beam::properties._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/properties/_form.blade.php
Beam/extensions/beam-module/resources/views/properties/_form.blade.php
<div class="form-group fg-float m-b-30"> <div class="fg-line"> {{ html()->text('name')->attribute('class', 'form-control fg-input') }} {{ html()->label('Name')->attribute('class', 'fg-label') }} </div> </div> {{ html()->button('<i class="zmdi zmdi-check"></i> Save', 'submit', 'action')->attributes([ 'class' => 'btn btn-info waves-effect', 'value' => 'save', ]) }} {{ html()->button('<i class="zmdi zmdi-mail-send"></i> Save and close', 'submit', 'action')->attributes([ 'class' => 'btn btn-info waves-effect', 'value' => 'save_close', ]) }}
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/properties/index.blade.php
Beam/extensions/beam-module/resources/views/properties/index.blade.php
@extends('beam::layouts.app') @section('title', 'Properties') @section('content') <div class="c-header"> <h2>Properties</h2> </div> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h2>List of properties <small></small></h2> <div class="actions"> <a href="{{ route('accounts.properties.create', $account->id) }}" class="btn palette-Cyan bg waves-effect">Add new property</a> </div> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'priority' => 1, 'render' => 'link', ], 'uuid' => [ 'header' => 'token', 'priority' => 1, ], 'created_at' => [ 'header' => 'created at', 'render' => 'date', 'priority' => 2, ] ], 'dataSource' => route('accounts.properties.json', $account), 'rowActions' => [ ['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit property'], ], ]) !!} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/properties/_actions.blade.php
Beam/extensions/beam-module/resources/views/properties/_actions.blade.php
{{ html()->a( href: route('accounts.properties.edit', ['account' => $account, 'property' => $property]), contents: '' )->attribute('class', 'btn btn-xs palette-Cyan bg waves-effect zmdi zmdi-palette-Cyan zmdi-edit') }}
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/properties/create.blade.php
Beam/extensions/beam-module/resources/views/properties/create.blade.php
@extends('beam::layouts.app') @section('title', 'Add property') @section('content') <div class="c-header"> <h2>Properties</h2> </div> <div class="card"> <div class="card-header"> <h2>Add new property <small></small></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($property)->route('accounts.properties.store', $account)->open() }} @include('beam::properties._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/tagcategories/index.blade.php
Beam/extensions/beam-module/resources/views/tagcategories/index.blade.php
@extends('beam::layouts.app') @section('title', 'Tag Categories') @section('content') <div class="c-header"> <h2>Tag Categories</h2> </div> <div class="well"> <div id="smart-range-selectors" class="row"> <div class="col-md-4"> <h4>Filter by publish date</h4> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callbackPublished"> </smart-range-selector> </div> <div class="col-md-4"> <h4>Filter by conversion date</h4> {{ html()->hidden('conversion_from', $conversionFrom) }} {{ html()->hidden('conversion_to', $conversionTo) }} <smart-range-selector from="{{$conversionFrom}}" to="{{$conversionTo}}" :callback="callbackConversion"> </smart-range-selector> </div> <div class="col-md-2"> <h4>Filter by article content type</h4> {{ html()->hidden('content_type', $contentType) }} <v-select name="content_type_select" :options="contentTypes" value="{{$contentType}}" title="all" liveSearch="false" v-on:input="callbackContentType" ></v-select> </div> </div> </div> <div class="card"> <div class="card-header"> <h2>Tag Category stats <small></small></h2> </div> @include('beam::tagcategories.subviews.dt_tag_categories', ['dataSource' => route('tagCategories.dtTagCategories')]) </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selectors", components: { SmartRangeSelector, vSelect }, data: function () { return { contentTypes: {!! @json($contentTypes) !!} } }, methods: { callbackPublished: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); }, callbackConversion: function (from, to) { $('[name="conversion_from"]').val(from); $('[name="conversion_to"]').val(to).trigger("change"); }, callbackContentType: function (contentType) { $('[name="content_type"]').val(contentType).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/tagcategories/show.blade.php
Beam/extensions/beam-module/resources/views/tagcategories/show.blade.php
@extends('beam::layouts.app') @section('title', 'Show tag category - ' . $tagCategory->name) @section('content') <div class="c-header"> <h2>Tag category - {{ $tagCategory->name }}</h2> </div> <div class="col-md-12"> <div class="well"> <div class="row"> <div class="col-md-6"> <h4>Filter by publish date</h4> <div id="smart-range-selector"> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callback"> </smart-range-selector> </div> </div> </div> </div> </div> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h2>Tags</h2> </div> @include('beam::tags.subviews.dt_tags', ['dataSource' => route('tagCategories.dtTags', $tagCategory)]) </div> </div> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h2>Articles</h2> </div> @include('beam::articles.subviews.dt_articles', ['dataSource' => route('tagCategories.dtArticles', $tagCategory)]) </div> </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selector", components: { SmartRangeSelector }, methods: { callback: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/tagcategories/subviews/dt_tag_categories.blade.php
Beam/extensions/beam-module/resources/views/tagcategories/subviews/dt_tag_categories.blade.php
{!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'header' => 'Tag Category', 'orderable' => false, 'filter' => $tagCategories, 'priority' => 1, 'render' => 'link', ], 'tags_count' => [ 'header' => 'tags', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'render' => 'number', 'className' => 'text-right' ], 'articles_count' => [ 'header' => 'articles', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'render' => 'number', 'className' => 'text-right' ], 'conversions_count' => [ 'header' => 'conversions', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'render' => 'number', 'className' => 'text-right' ], 'conversions_amount' => [ 'header' => 'amount', 'render' => 'array', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_all' => [ 'header' => 'all pageviews', 'render' => 'number', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_not_subscribed' => [ 'header' => 'not subscribed pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_subscribers' => [ 'header' => 'subscriber pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_all' => [ 'header' => 'avg time all', 'render' => 'duration', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_not_subscribed' => [ 'header' => 'avg time not subscribed', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_subscribers' => [ 'header' => 'avg time subscribers', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], ], 'dataSource' => $dataSource, 'order' => [3, 'desc'], 'requestParams' => [ 'published_from' => '$(\'[name="published_from"]\').val()', 'published_to' => '$(\'[name="published_to"]\').val()', 'conversion_from' => '$(\'[name="conversion_from"]\').val()', 'conversion_to' => '$(\'[name="conversion_to"]\').val()', 'content_type' => '$(\'[name="content_type"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="published_from"]' ], [ 'event' => 'change', 'selector' => '[name="published_to"]', ], [ 'event' => 'change', 'selector' => '[name="conversion_from"]' ], [ 'event' => 'change', 'selector' => '[name="conversion_to"]', ], [ 'event' => 'change', 'selector' => '[name="content_type"]', ], ], 'exportColumns' => [0,1,2,3,4,5,6,7,8,9], ]) !!}
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/userpath/index.blade.php
Beam/extensions/beam-module/resources/views/userpath/index.blade.php
@extends('beam::layouts.app') @section('title', 'Conversions') @section('content') <div class="c-header"> <h2>User path</h2> </div> <div class="card"> <div class="card-header"> <h2>Configuration <small>Compute statistics about actions users make prior conversion<br/></small> </h2> </div> <div id="userpath-vue" class="card-body card-padding"> <form method="post" v-on:submit.prevent="sendForm"> <h5>Filter actions</h5> <div class="row"> <div class="col-sm-2 m-b-25"> <p class="f-500 m-b-15 c-black">Actions done less than</p> <select v-model="form.days" name="days" class="selectpicker bs-select-hidden"> @foreach($days as $day) <option value="{{$day}}">{{$day}} {{Str::plural('day', $day)}}</option> @endforeach </select> </div> <div class="col-sm-3 m-b-25"> <p class="c-black" style="margin-top: 40px;">prior conversions</p> </div> </div> <h5>Filter conversions</h5> <div class="row"> <div class="col-sm-3 m-b-25"> <p class="f-500 m-b-15 c-black">Conversion amount</p> <select v-model="form.sums" name="sums[]" class="selectpicker bs-select-hidden" title="No filter" data-live-search="true" multiple=""> @foreach($sumCategories as $category) <option value="{{$category->amount}}|{{$category->currency}}">{{$category->amount}} {{$category->currency}}</option> @endforeach </select> </div> <div class="col-sm-3 m-b-25"> <p class="f-500 m-b-15 c-black">Authors</p> <select v-model="form.authors" name="authors[]" class="selectpicker bs-select-hidden" title="No filter" data-live-search="true" data-live-search-normalize="true" multiple=""> @foreach($authors as $author) <option value="{{$author->id}}">{{$author->name}}</option> @endforeach </select> </div> <div class="col-sm-3 m-b-25"> <p class="f-500 m-b-15 c-black">Sections</p> <select v-model="form.sections" name="sections[]" class="selectpicker bs-select-hidden" title="No filter" data-live-search="true" data-live-search-normalize="true" multiple=""> @foreach($sections as $section) <option value="{{$section->id}}">{{$section->name}}</option> @endforeach </select> </div> </div> <button type="submit" class="btn btn-info btn-sm m-t-10 waves-effect">Compute statistics</button> </form> <user-path :stats="stats" :loading="loading" :error="error"></user-path> </div> <div id="conversions-diagram-vue" class="card-body card-padding"> <conversions-sankey-diagram v-for="conversionSourceType in conversionSourceTypes" :data-url="dataUrl" :conversion-source-type="conversionSourceType"></conversions-sankey-diagram> </div> </div> <script type="text/javascript"> new Vue({ el: "#userpath-vue", components: { UserPath }, data: { url: "{!! route('userpath.stats') !!}", form: { days: 2, sums: [], authors: [], sections: [], }, stats: null, loading: false, error: null, }, methods: { sendForm: function () { this.loading = true var that = this; $.post(this.url, this.form, function(data) { that.stats = data; that.loading = false; }, 'json').fail(function() { let errorMsg = 'Error while loading statistics data, try again later please.' that.error = errorMsg console.warn(that.error); $.notify({ message: errorMsg }, { allow_dismiss: false, type: 'danger' }); that.loading = false; }); } } }); new Vue({ el: "#conversions-diagram-vue", components: { ConversionsSankeyDiagram }, data: { dataUrl: "{!! route('userpath.diagramData') !!}", conversionSourceTypes: {!! json_encode($conversionSourceTypes) !!} } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/layouts/_scripts.blade.php
Beam/extensions/beam-module/resources/views/layouts/_scripts.blade.php
<script type="application/javascript"> $(document).ready(function() { let delay = 250; @foreach ($errors->all() as $error) (function(delay) { window.setTimeout(function() { $.notify({ message: '{{ $error }}' }, { allow_dismiss: false, type: 'danger' }); }, delay); })(delay); delay += 250; @endforeach @if (session('warning')) $.notify({ message: '{{ session('warning') }}' }, { allow_dismiss: false, type: 'warning', placement: { from: "bottom", align: "left" } }); @endif @if (session('success')) $.notify({ message: '{{ session('success') }}' }, { allow_dismiss: false, type: 'info', placement: { from: "bottom", align: "left" } }); @endif }); </script>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/layouts/_head.blade.php
Beam/extensions/beam-module/resources/views/layouts/_head.blade.php
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> @yield('title') </title> <link rel="apple-touch-icon" sizes="57x57" href="{{ asset('/vendor/beam/img/favicon/apple-icon-57x57.png') }}"> <link rel="apple-touch-icon" sizes="60x60" href="{{ asset('/vendor/beam/img/favicon/apple-icon-60x60.png') }}"> <link rel="apple-touch-icon" sizes="72x72" href="{{ asset('/vendor/beam/img/favicon/apple-icon-72x72.png') }}"> <link rel="apple-touch-icon" sizes="76x76" href="{{ asset('/vendor/beam/img/favicon/apple-icon-76x76.png') }}"> <link rel="apple-touch-icon" sizes="114x114" href="{{ asset('/vendor/beam/img/favicon/apple-icon-114x114.png') }}"> <link rel="apple-touch-icon" sizes="120x120" href="{{ asset('/vendor/beam/img/favicon/apple-icon-120x120.png') }}"> <link rel="apple-touch-icon" sizes="144x144" href="{{ asset('/vendor/beam/img/favicon/apple-icon-144x144.png') }}"> <link rel="apple-touch-icon" sizes="152x152" href="{{ asset('/vendor/beam/img/favicon/apple-icon-152x152.png') }}"> <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('/vendor/beam/img/favicon/apple-icon-180x180.png') }}"> <link rel="icon" type="image/png" sizes="192x192" href="{{ asset('vendor/beam/img/favicon/android-icon-192x192.png') }}"> <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('/vendor/beam/img/favicon/favicon-32x32.png') }}"> <link rel="icon" type="image/png" sizes="96x96" href="{{ asset('/vendor/beam/img/favicon/favicon-96x96.png') }}"> <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('/vendor/beam/img/favicon/favicon-16x16.png') }}"> <link rel="manifest" href="{{ asset('/vendor/beam/img/favicon/manifest.json') }}"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="{{ asset('/vendor/beam/img/favicon/ms-icon-144x144.png') }}"> <meta name="csrf-token" content="{{ csrf_token() }}"> <link href="{{ asset(mix('/css/vendor.css', '/vendor/beam')) }}" rel="stylesheet"> <link href="{{ asset(mix('/css/app.css', '/vendor/beam')) }}" rel="stylesheet"> <script src="{{ asset(mix('/js/manifest.js', '/vendor/beam')) }}"></script> <script src="{{ asset(mix('/js/vendor.js', '/vendor/beam')) }}"></script> <script src="{{ asset(mix('/js/app.js', '/vendor/beam')) }}"></script> <script type="text/javascript"> moment.locale('{{ Config::get('app.locale') }}'); </script> {{-- tightenco/ziggy package to pass laravel routes to JS --}} @routes @stack('head') </head>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/layouts/_ie_warnings.blade.php
Beam/extensions/beam-module/resources/views/layouts/_ie_warnings.blade.php
<!-- Older IE warning message --> <!--[if lt IE 9]> <div class="ie-warning"> <h1 class="c-white">Warning!!</h1> <p>You are using an outdated version of Internet Explorer, please upgrade <br/>to any of the following web browsers to access this website.</p> <div class="iew-container"> <ul class="iew-download"> <li> <a href="http://www.google.com/chrome/"> <img src="img/browsers/chrome.png" alt=""> <div>Chrome</div> </a> </li> <li> <a href="https://www.mozilla.org/en-US/firefox/new/"> <img src="img/browsers/firefox.png" alt=""> <div>Firefox</div> </a> </li> <li> <a href="http://www.opera.com"> <img src="img/browsers/opera.png" alt=""> <div>Opera</div> </a> </li> <li> <a href="https://www.apple.com/safari/"> <img src="img/browsers/safari.png" alt=""> <div>Safari</div> </a> </li> <li> <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie"> <img src="img/browsers/ie.png" alt=""> <div>IE (New)</div> </a> </li> </ul> </div> <p>Sorry for the inconvenience!</p> </div> <![endif]-->
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/layouts/simple.blade.php
Beam/extensions/beam-module/resources/views/layouts/simple.blade.php
<!DOCTYPE html> @include('beam::layouts._head') <body data-ma-header="cyan-600"> <section id="main-simple"> <section id="content"> <div class="container"> @yield('content') @if (count($errors) > 0) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif </div> </section> <footer id="footer"> <p>Thank you for using <a href="https://remp2020.com/" title="Readers’ Engagement and Monetization Platform | Open-source tools for publishers">REMP</a>, open-source software by Denník N.</p> </footer> </section> @include('beam::layouts._ie_warnings') @include('beam::layouts._scripts') @stack('scripts') </body> </html>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/layouts/auth.blade.php
Beam/extensions/beam-module/resources/views/layouts/auth.blade.php
<html> @include('beam::layouts._head') <body> <div class="login"> <!-- Login --> <div class="l-block toggled" id="l-login"> @yield('content') </div> </div> </body> </html>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/layouts/app.blade.php
Beam/extensions/beam-module/resources/views/layouts/app.blade.php
<!DOCTYPE html> @include('beam::layouts._head') <body data-ma-header="cyan-600"> <div class="remp-menu"> <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="/"> <div class="svg-logo"></div> </a> </div> <ul class="nav navbar-nav navbar-remp display-on-computer"> @foreach(config('services.remp.linked') as $key => $service) @isset($service['url']) <li @class(['active' => $service['url'] === '/'])> <a href="{{ $service['url'] }}"><i class="zmdi zmdi-{{ $service['icon'] }} zmdi-hc-fw"></i> {{ $key }}</a> </li> @endisset @endforeach </ul> <ul class="nav navbar-nav navbar-right"> <li class="dropdown hm-profile"> <a data-toggle="dropdown" href=""> <img src="https://www.gravatar.com/avatar/{{ md5(Auth::user()->email) }}" alt=""> </a> <ul class="dropdown-menu pull-right dm-icon"> <li> <a href="{{ route('settings.index') }}"><i class="zmdi zmdi-settings"></i> Settings</a> </li> <li> <a href="{{ route('auth.logout') }}"><i class="zmdi zmdi-time-restore"></i> Logout</a> </li> </ul> </li> </ul> </div> </nav> </div> <header id="header" class="media"> <div class="pull-left h-logo"> <a href="/" class="hidden-xs"></a> <div class="menu-collapse" data-ma-action="sidebar-open" data-ma-target="main-menu"> <div class="mc-wrap"> <div class="mcw-line top palette-White bg"></div> <div class="mcw-line center palette-White bg"></div> <div class="mcw-line bottom palette-White bg"></div> </div> </div> </div> <ul class="pull-right h-menu"> <li class="hm-search-trigger"> <a href="" data-ma-action="search-open"> <i class="hm-icon zmdi zmdi-search"></i> </a> </li> </ul> <div class="media-body h-search site-search"> <form class="p-relative"> <div class="typeahead__container"> <div class="typeahead__field"> <div class="preloader pl-lg pls-teal"> <svg class="pl-circular" viewBox="25 25 50 50"> <circle class="plc-path" cx="50" cy="50" r="20"></circle> </svg> </div> <input class="js-typeahead hs-input typeahead" name="q" autocomplete="off" placeholder="Search for articles (titles and IDs), authors, and segments"> <i class="zmdi zmdi-search hs-reset" data-ma-action="search-clear"></i> </div> </div> </form> </div> <div class="clearfix"></div> </header> <section id="main"> <aside id="s-main-menu" class="sidebar"> @if(isset($accountPropertyTokens)) <form method="post" action="{{ route('properties.switch') }}"> @csrf <select name="token" class="token-select" onchange="javascript:this.form.submit()"> @foreach($accountPropertyTokens as $account) @if($account->name) <optgroup label="{{$account->name}}"> @endif @foreach($account->tokens as $token) <option value="{{$token->uuid}}" {{$token->selected ? 'selected' : ''}}>{{$token->name}}</option> @endforeach @if($account->name) </optgroup> @endif @endforeach </select> </form> @endif <ul class="main-menu"> <li {!! route_active(['dashboard']) !!}> <a href="{{ route('dashboard.index') }}" ><i class="zmdi zmdi-chart"></i> Dashboard</a> </li> <li {!! route_active(['accounts']) !!}> <a href="{{ route('accounts.index') }}" ><i class="zmdi zmdi-cloud-box"></i> Accounts</a> </li> <li {!! route_active(['accounts.properties'], 'sub-menu') !!}> <a href="#" data-ma-action="submenu-toggle"><i class="zmdi zmdi-view-quilt"></i> Properties</a> <ul> @foreach (\Remp\BeamModule\Model\Account::all() as $account) <li><a href="{{ route("accounts.properties.index", $account->id) }}">{{ $account->name }}</a></li> @endforeach </ul> </li> <li class="m-b-15"></li> <li {!! route_active(['segments', 'entities', 'authorSegments.index', 'sectionSegments.index'], 'sub-menu', 'toggled') !!}> <a href="#" data-ma-action="submenu-toggle" ><i class="zmdi zmdi-accounts-list-alt"></i> Segments</a> <ul> <li {!! route_active(['segments']) !!}> <a href="{{ route('segments.index') }}" ><i class="zmdi zmdi-accounts-list m-r-5"></i> Segments</a> </li> <li {!! route_active(['authorSegments.index']) !!}> <a href="{{ route('authorSegments.index') }}" ><i class="zmdi zmdi-accounts-list m-r-5"></i> Author segments</a> </li> <li {!! route_active(['sectionSegments.index']) !!}> <a href="{{ route('sectionSegments.index') }}" ><i class="zmdi zmdi-accounts-list m-r-5"></i> Section segments</a> </li> <li {!! route_active(['entities']) !!}> <a href="{{ route('entities.index') }}" ><i class="zmdi zmdi-crop-free m-r-5"></i> Entities</a> </li> </ul> </li> <li class="m-b-15"></li> <li {!! route_active(['articles.conversions', 'articles.pageviews'], 'sub-menu', 'toggled') !!}> <a href="#" data-ma-action="submenu-toggle"><i class="zmdi zmdi-library"></i> Articles</a> <ul> <li {!! route_active(['articles.conversions']) !!}> <a href="{{ route('articles.conversions') }}" ><i class="zmdi zmdi-chart m-r-5"></i> Conversion stats</a> </li> <li {!! route_active(['articles.pageviews']) !!}> <a href="{{ route('articles.pageviews') }}" ><i class="zmdi zmdi-chart m-r-5"></i> Pageview stats</a> </li> </ul> </li> @if (config('services.remp.mailer.api_token')) <li {!! route_active(['newsletters']) !!}> <a href="{{ route('newsletters.index') }}" ><i class="zmdi zmdi-email"></i> Newsletters</a> </li> @endif <li {!! route_active(['conversions', 'userpath'], 'sub-menu', 'toggled') !!}> <a href="#" data-ma-action="submenu-toggle"><i class="zmdi zmdi-face"></i> Conversions</a> <ul> <li {!! route_active(['conversions']) !!}> <a href="{{ route('conversions.index') }}" ><i class="zmdi zmdi-money-box"></i> Conversions</a> </li> <li {!! route_active(['userpath']) !!}> <a href="{{ route('userpath.index') }}" ><i class="zmdi zmdi-arrow-split"></i> User path</a> </li> </ul> </li> <li {!! route_active(['authors']) !!}> <a href="{{ route('authors.index') }}" ><i class="zmdi zmdi-account-box"></i> Authors</a> </li> <li {!! route_active(['sections']) !!}> <a href="{{ route('sections.index') }}" ><i class="zmdi zmdi-collection-text"></i> Sections</a> </li> <li {!! route_active(['tags']) !!}> <a href="{{ route('tags.index') }}" ><i class="zmdi zmdi-label"></i> Tags</a> </li> <li {!! route_active(['tag-categories']) !!}> <a href="{{ route('tag-categories.index') }}" ><i class="zmdi zmdi-filter-list"></i> Tag Categories</a> </li> </ul> </aside> <section id="content"> <div class="container"> @yield('content') @if (count($errors) > 0) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif </div> </section> <footer id="footer"> <p>Thank you for using <a href="https://remp2020.com/" title="Readers’ Engagement and Monetization Platform | Open-source tools for publishers">REMP</a>, open-source software by Denník N.</p> </footer> </section> @include('beam::layouts._ie_warnings') @include('beam::layouts._scripts') @stack('scripts') </body> </html>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/accounts/edit.blade.php
Beam/extensions/beam-module/resources/views/accounts/edit.blade.php
@extends('beam::layouts.app') @section('title', 'Edit account') @section('content') <div class="c-header"> <h2>Accounts</h2> </div> <div class="card"> <div class="card-header"> <h2>Edit account <small>{{ $account->name }}</small></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($account, 'PATCH')->route('accounts.update', $account)->open() }} @include('beam::accounts._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/accounts/_form.blade.php
Beam/extensions/beam-module/resources/views/accounts/_form.blade.php
<div class="form-group fg-float m-b-30"> <div class="fg-line"> {{ html()->text('name')->attribute('class', 'form-control fg-input') }} {{ html()->label('name')->attribute('class', 'fg-label') }} </div> </div> {{ html()->button('<i class="zmdi zmdi-check"></i> Save', 'submit', 'action')->attributes([ 'class' => 'btn btn-info waves-effect', 'type' => 'submit', 'name' => 'action', 'value' => 'save' ]) }} {{ html()->button('<i class="zmdi zmdi-mail-send"></i> Save and close', 'submit', 'action')->attributes([ 'class' => 'btn btn-info waves-effect', 'value' => 'save_close' ]) }}
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/accounts/index.blade.php
Beam/extensions/beam-module/resources/views/accounts/index.blade.php
@extends('beam::layouts.app') @section('title', 'Accounts') @section('content') <div class="c-header"> <h2>Accounts</h2> </div> <div class="card"> <div class="card-header"> <h2>All accounts <small></small></h2> <div class="actions"> <a href="{{ route('accounts.create') }}" class="btn palette-Cyan bg waves-effect">Add new account</a> </div> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'priority' => 1, 'render' => 'link', ], 'created_at' => [ 'header' => 'created at', 'render' => 'date', 'priority' => 1, ], ], 'dataSource' => route('accounts.json'), 'rowActions' => [ ['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit account'], ], ]) !!} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/accounts/create.blade.php
Beam/extensions/beam-module/resources/views/accounts/create.blade.php
@extends('beam::layouts.app') @section('title', 'Add account') @section('content') <div class="c-header"> <h2>Accounts</h2> </div> <div class="card"> <div class="card-header"> <h2>Add new account <small></small></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($account)->route('accounts.store')->open() }} @include('beam::accounts._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/dashboard/index.blade.php
Beam/extensions/beam-module/resources/views/dashboard/index.blade.php
@extends('beam::layouts.app') @section('title', 'Dashboard') @section('content') <div id="dashboard"> <div class="c-header"> <h2>Live Dashboard</h2> </div> <dashboard-root :articles-url="articlesUrl" :time-histogram-url="timeHistogramUrl" :time-histogram-url-new="timeHistogramUrlNew" :conversion-rate-multiplier="conversionRateMultiplier" :external-events="externalEvents" :options="options"> </dashboard-root> </div> <script type="text/javascript"> new Vue({ el: "#dashboard", components: { DashboardRoot }, provide: function() { return { dashboardOptions: this.options } }, created: function() { this.$store.commit('changeSettings', { newGraph: {{ @json(config('beam.pageview_graph_data_source') === 'snapshots') }} }); }, store: DashboardStore, data: { articlesUrl: "{!! route('dashboard.articles.json') !!}", timeHistogramUrl: "{!! route('dashboard.timeHistogram.json') !!}", timeHistogramUrlNew: "{!! route('dashboard.timeHistogramNew.json') !!}", options: {!! @json($options) !!}, externalEvents: {!! @json($externalEvents) !!}, conversionRateMultiplier: {!! $conversionRateMultiplier !!} } }) </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/dashboard/public.blade.php
Beam/extensions/beam-module/resources/views/dashboard/public.blade.php
@extends('beam::layouts.simple') @section('title', 'Public Dashboard') @section('content') <div id="dashboard"> <dashboard-root :options="options" :articles-url="articlesUrl" :time-histogram-url="timeHistogramUrl" :time-histogram-url-new="timeHistogramUrlNew" :account-property-tokens="accountPropertyTokens" :csrf-token="csrfToken" :external-events="externalEvents" :conversion-rate-multiplier="conversionRateMultiplier"> </dashboard-root> </div> <script type="text/javascript"> new Vue({ el: "#dashboard", components: { DashboardRoot }, created: function() { this.$store.commit('changeSettings', { newGraph: {{ @json(config('beam.pageview_graph_data_source') === 'snapshots') }} }) }, provide: function() { return { dashboardOptions: this.options } }, store: DashboardStore, data: { articlesUrl: "{!! route('public.articles.json') !!}", timeHistogramUrl: "{!! route('public.timeHistogram.json') !!}", timeHistogramUrlNew: "{!! route('public.timeHistogramNew.json') !!}", options: {!! @json($options) !!}, accountPropertyTokens: {!! @json($accountPropertyTokens ?? false) !!}, csrfToken: {!!'"' . csrf_token() . '"'!!}, externalEvents: {!! @json($externalEvents) !!}, conversionRateMultiplier: {!! $conversionRateMultiplier !!} } }) </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/bootstrap/app.php
Beam/bootstrap/app.php
<?php use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; use Sentry\Laravel\Integration; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', api: __DIR__.'/../routes/api.php', commands: __DIR__.'/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware) { $middleware->trustProxies(at: '*'); }) ->withExceptions(function (Exceptions $exceptions) { Integration::handles($exceptions); })->create();
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/bootstrap/providers.php
Beam/bootstrap/providers.php
<?php return [ App\Providers\AppServiceProvider::class, App\Providers\WidgetServiceProvider::class, ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/routes/web.php
Beam/routes/web.php
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider and all of them will | be assigned to the "web" middleware group. Make something great! | */
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/routes/api.php
Beam/routes/api.php
<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider and all of them will | be assigned to the "api" middleware group. Make something great! | */ //Route::middleware('auth:sanctum')->get('/user', function (Request $request) { // return $request->user(); //});
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/routes/console.php
Beam/routes/console.php
<?php use Illuminate\Foundation\Inspiring; use Illuminate\Support\Facades\Artisan; /* |-------------------------------------------------------------------------- | Console Routes |-------------------------------------------------------------------------- | | This file is where you may define all of your Closure based console | commands. Each Closure is bound to a command instance allowing a | simple approach to interacting with each command's IO methods. | */ Artisan::command('inspire', function () { $this->comment(Inspiring::quote()); })->purpose('Display an inspiring quote');
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/public/index.php
Beam/public/index.php
<?php use Illuminate\Foundation\Application; use Illuminate\Http\Request; define('LARAVEL_START', microtime(true)); // Determine if the application is in maintenance mode... if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { require $maintenance; } // Register the Composer autoloader... require __DIR__.'/../vendor/autoload.php'; // Bootstrap Laravel and handle the request... /** @var Application $app */ $app = require_once __DIR__.'/../bootstrap/app.php'; $app->handleRequest(Request::capture());
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/app.php
Beam/config/app.php
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application, which will be used when the | framework needs to place the application's name in a notification or | other UI elements where an application name needs to be displayed. | */ 'name' => env('APP_NAME', 'REMP Beam'), /* |-------------------------------------------------------------------------- | Application Environment |-------------------------------------------------------------------------- | | This value determines the "environment" your application is currently | running in. This may determine how you prefer to configure various | services the application utilizes. Set this in your ".env" file. | */ 'env' => env('APP_ENV', 'production'), /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error that occurs within your | application. If disabled, a simple generic error page is shown. | */ 'debug' => (bool) env('APP_DEBUG', false), /* |-------------------------------------------------------------------------- | Application URL |-------------------------------------------------------------------------- | | This URL is used by the console to properly generate URLs when using | the Artisan command line tool. You should set this to the root of | the application so that it's available within Artisan commands. | */ 'url' => env('APP_URL', 'http://localhost'), // Flag to force all generated URLs to be secure no matter the protocol of incoming request. 'force_https' => env('FORCE_HTTPS', false), /* |-------------------------------------------------------------------------- | Application Timezone |-------------------------------------------------------------------------- | | Here you may specify the default timezone for your application, which | will be used by the PHP date and date-time functions. The timezone | is set to "UTC" by default as it is suitable for most use cases. | */ 'timezone' => 'UTC', /* |-------------------------------------------------------------------------- | Application Locale Configuration |-------------------------------------------------------------------------- | | The application locale determines the default locale that will be used | by Laravel's translation / localization methods. This option can be | set to any locale for which you plan to have translation strings. | */ 'locale' => env('APP_LOCALE', 'en'), 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is utilized by Laravel's encryption services and should be set | to a random, 32 character string to ensure that all encrypted values | are secure. You should do this prior to deploying the application. | */ 'cipher' => 'AES-256-CBC', 'key' => env('APP_KEY'), 'previous_keys' => [ ...array_filter( explode(',', env('APP_PREVIOUS_KEYS', '')) ), ], /* |-------------------------------------------------------------------------- | Maintenance Mode Driver |-------------------------------------------------------------------------- | | These configuration options determine the driver used to determine and | manage Laravel's "maintenance mode" status. The "cache" driver will | allow maintenance mode to be controlled across multiple machines. | | Supported drivers: "file", "cache" | */ 'maintenance' => [ 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), 'store' => env('APP_MAINTENANCE_STORE', 'database'), ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/tracy.php
Beam/config/tracy.php
<?php return [ 'enabled' => env('APP_DEBUG') === true, 'showBar' => env('APP_ENV') !== 'production', 'accepts' => [ 'text/html', ], 'appendTo' => 'body', 'editor' => env('APP_DEBUG_EDITOR', 'phpstorm://open?file=%file&line=%line'), 'maxDepth' => 4, 'maxLength' => 1000, 'scream' => true, 'showLocation' => true, 'strictMode' => true, 'panels' => [ 'routing' => true, 'database' => true, 'view' => true, 'event' => true, 'session' => true, 'request' => true, 'auth' => true, 'html-validator' => true, 'terminal' => true, ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/logging.php
Beam/config/logging.php
<?php use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Handler\SyslogUdpHandler; return [ /* |-------------------------------------------------------------------------- | Default Log Channel |-------------------------------------------------------------------------- | | This option defines the default log channel that gets used when writing | messages to the logs. The name specified in this option should match | one of the channels defined in the "channels" configuration array. | */ 'default' => env('LOG_CHANNEL', 'stack'), /* |-------------------------------------------------------------------------- | Log Channels |-------------------------------------------------------------------------- | | Here you may configure the log channels for your application. Out of | the box, Laravel uses the Monolog PHP logging library. This gives | you a variety of powerful log handlers / formatters to utilize. | | Available Drivers: "single", "daily", "slack", "syslog", | "errorlog", "monolog", | "custom", "stack" | */ 'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => ['single'], 'ignore_exceptions' => false, ], 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), 'level' => env('LOG_LEVEL', 'debug'), 'permission' => 0666, ], 'airbrake' => [ 'driver' => 'custom', 'via' => App\AirbrakeLogger::class, 'level' => 'notice', ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => env('LOG_LEVEL', 'debug'), 'permission' => 0666, 'days' => 14, ], 'slack' => [ 'driver' => 'slack', 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', 'emoji' => ':boom:', 'level' => env('LOG_LEVEL', 'critical'), ], 'papertrail' => [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), ], ], 'stderr' => [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), 'with' => [ 'stream' => 'php://stderr', ], ], 'syslog' => [ 'driver' => 'syslog', 'level' => env('LOG_LEVEL', 'debug'), ], 'errorlog' => [ 'driver' => 'errorlog', 'level' => env('LOG_LEVEL', 'debug'), ], 'null' => [ 'driver' => 'monolog', 'handler' => NullHandler::class, ], 'emergency' => [ 'path' => storage_path('logs/laravel.log'), ], ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/session.php
Beam/config/session.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option controls the default session "driver" that will be used on | requests. By default, we will use the lightweight native driver but | you may specify any of the other wonderful drivers provided here. | | Supported: "file", "cookie", "database", "apc", | "memcached", "redis", "dynamodb", "array" | */ 'driver' => env('SESSION_DRIVER', 'file'), /* |-------------------------------------------------------------------------- | Session Lifetime |-------------------------------------------------------------------------- | | Here you may specify the number of minutes that you wish the session | to be allowed to remain idle before it expires. If you want them | to immediately expire on the browser closing, set that option. | */ 'lifetime' => env('SESSION_LIFETIME', 120), 'expire_on_close' => false, /* |-------------------------------------------------------------------------- | Session Encryption |-------------------------------------------------------------------------- | | This option allows you to easily specify that all of your session data | should be encrypted before it is stored. All encryption will be run | automatically by Laravel and you can use the Session like normal. | */ 'encrypt' => false, /* |-------------------------------------------------------------------------- | Session File Location |-------------------------------------------------------------------------- | | When using the native session driver, we need a location where session | files may be stored. A default has been set for you but a different | location may be specified. This is only needed for file sessions. | */ 'files' => storage_path('framework/sessions'), /* |-------------------------------------------------------------------------- | Session Database Connection |-------------------------------------------------------------------------- | | When using the "database" or "redis" session drivers, you may specify a | connection that should be used to manage these sessions. This should | correspond to a connection in your database configuration options. | */ 'connection' => env('SESSION_CONNECTION', 'session'), /* |-------------------------------------------------------------------------- | Session Database Table |-------------------------------------------------------------------------- | | When using the "database" session driver, you may specify the table we | should use to manage the sessions. Of course, a sensible default is | provided for you; however, you are free to change this as needed. | */ 'table' => 'sessions', /* |-------------------------------------------------------------------------- | Session Cache Store |-------------------------------------------------------------------------- | | While using one of the framework's cache driven session backends you may | list a cache store that should be used for these sessions. This value | must match with one of the application's configured cache "stores". | | Affects: "apc", "dynamodb", "memcached", "redis" | */ 'store' => env('SESSION_STORE', null), /* |-------------------------------------------------------------------------- | Session Sweeping Lottery |-------------------------------------------------------------------------- | | Some session drivers must manually sweep their storage location to get | rid of old sessions from storage. Here are the chances that it will | happen on a given request. By default, the odds are 2 out of 100. | */ 'lottery' => [2, 100], /* |-------------------------------------------------------------------------- | Session Cookie Name |-------------------------------------------------------------------------- | | Here you may change the name of the cookie used to identify a session | instance by ID. The name specified here will get used every time a | new session cookie is created by the framework for every driver. | */ 'cookie' => env( 'SESSION_COOKIE', Str::slug(env('APP_NAME', 'laravel'), '_').'_session' ), /* |-------------------------------------------------------------------------- | Session Cookie Path |-------------------------------------------------------------------------- | | The session cookie path determines the path for which the cookie will | be regarded as available. Typically, this will be the root path of | your application but you are free to change this when necessary. | */ 'path' => '/', /* |-------------------------------------------------------------------------- | Session Cookie Domain |-------------------------------------------------------------------------- | | Here you may change the domain of the cookie used to identify a session | in your application. This will determine which domains the cookie is | available to in your application. A sensible default has been set. | */ 'domain' => env('SESSION_DOMAIN', null), /* |-------------------------------------------------------------------------- | HTTPS Only Cookies |-------------------------------------------------------------------------- | | By setting this option to true, session cookies will only be sent back | to the server if the browser has a HTTPS connection. This will keep | the cookie from being sent to you if it can not be done securely. | */ 'secure' => env('SESSION_SECURE_COOKIE'), /* |-------------------------------------------------------------------------- | HTTP Access Only |-------------------------------------------------------------------------- | | Setting this value to true will prevent JavaScript from accessing the | value of the cookie and the cookie will only be accessible through | the HTTP protocol. You are free to modify this option if needed. | */ 'http_only' => true, /* |-------------------------------------------------------------------------- | Same-Site Cookies |-------------------------------------------------------------------------- | | This option determines how your cookies behave when cross-site requests | take place, and can be used to mitigate CSRF attacks. By default, we | will set this value to "lax" since this is a secure default value. | | Supported: "lax", "strict", "none", null | */ 'same_site' => null, ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/queue.php
Beam/config/queue.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Queue Connection Name |-------------------------------------------------------------------------- | | Laravel's queue API supports an assortment of back-ends via a single | API, giving you convenient access to each back-end using the same | syntax for every one. Here you may define a default connection. | */ 'default' => env('QUEUE_CONNECTION', 'sync'), /* |-------------------------------------------------------------------------- | Queue Connections |-------------------------------------------------------------------------- | | Here you may configure the connection information for each server that | is used by your application. A default configuration has been added | for each back-end shipped with Laravel. You are free to add more. | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" | */ 'connections' => [ 'sync' => [ 'driver' => 'sync', ], 'database' => [ 'driver' => 'database', 'table' => 'jobs', 'queue' => 'default', 'retry_after' => 90, 'after_commit' => false, ], 'beanstalkd' => [ 'driver' => 'beanstalkd', 'host' => 'localhost', 'queue' => 'default', 'retry_after' => 90, 'block_for' => 0, 'after_commit' => false, ], 'sqs' => [ 'driver' => 'sqs', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 'queue' => env('SQS_QUEUE', 'default'), 'suffix' => env('SQS_SUFFIX'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'after_commit' => false, ], 'redis' => [ 'driver' => 'redis', 'connection' => 'default', 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90, 'block_for' => null, 'after_commit' => false, ], ], /* |-------------------------------------------------------------------------- | Failed Queue Jobs |-------------------------------------------------------------------------- | | These options configure the behavior of failed queue job logging so you | can control which database and table are used to store the jobs that | have failed. You may change them to any database / table you wish. | */ 'failed' => [ 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 'database' => env('DB_CONNECTION', 'mysql'), 'table' => 'failed_jobs', ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/airbrake.php
Beam/config/airbrake.php
<?php return [ 'enabled' => env('AIRBRAKE_ENABLED', false), 'projectKey' => env('AIRBRAKE_API_KEY', ''), 'host' => env('AIRBRAKE_API_HOST', 'api.airbrake.io'), 'environment' => env('APP_ENV', 'production'), 'projectId' => '_', 'appVersion' => '', 'rootDirectory' => '', 'httpClient' => '', ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/internal.php
Beam/config/internal.php
<?php return [ 'gender_balance_enabled' => env('GENDER_BALANCE_ENABLED', false), ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/debugbar.php
Beam/config/debugbar.php
<?php return [ /* |-------------------------------------------------------------------------- | Debugbar Settings |-------------------------------------------------------------------------- | | Debugbar is enabled by default, when debug is set to true in app.php. | You can override the value by setting enable to true or false instead of null. | */ 'enabled' => null, /* |-------------------------------------------------------------------------- | Storage settings |-------------------------------------------------------------------------- | | DebugBar stores data for session/ajax requests. | You can disable this, so the debugbar stores data in headers/session, | but this can cause problems with large data collectors. | By default, file storage (in the storage folder) is used. Redis and PDO | can also be used. For PDO, run the package migrations first. | */ 'storage' => [ 'enabled' => true, 'driver' => 'file', // redis, file, pdo, custom 'path' => storage_path('debugbar'), // For file driver 'connection' => null, // Leave null for default connection (Redis/PDO) 'provider' => '' // Instance of StorageInterface for custom driver ], /* |-------------------------------------------------------------------------- | Vendors |-------------------------------------------------------------------------- | | Vendor files are included by default, but can be set to false. | This can also be set to 'js' or 'css', to only include javascript or css vendor files. | Vendor files are for css: font-awesome (including fonts) and highlight.js (css files) | and for js: jquery and and highlight.js | So if you want syntax highlighting, set it to true. | jQuery is set to not conflict with existing jQuery scripts. | */ 'include_vendors' => true, /* |-------------------------------------------------------------------------- | Capture Ajax Requests |-------------------------------------------------------------------------- | | The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors), | you can use this option to disable sending the data through the headers. | */ 'capture_ajax' => true, /* |-------------------------------------------------------------------------- | Clockwork integration |-------------------------------------------------------------------------- | | The Debugbar can emulate the Clockwork headers, so you can use the Chrome | Extension, without the server-side code. It uses Debugbar collectors instead. | */ 'clockwork' => false, /* |-------------------------------------------------------------------------- | DataCollectors |-------------------------------------------------------------------------- | | Enable/disable DataCollectors | */ 'collectors' => [ 'phpinfo' => true, // Php version 'messages' => true, // Messages 'time' => true, // Time Datalogger 'memory' => true, // Memory usage 'exceptions' => true, // Exception displayer 'log' => true, // Logs from Monolog (merged in messages if enabled) 'db' => true, // Show database (PDO) queries and bindings 'views' => true, // Views with their data 'route' => true, // Current route information 'laravel' => false, // Laravel version and environment 'events' => false, // All events fired 'default_request' => false, // Regular or special Symfony request logger 'symfony_request' => true, // Only one can be enabled.. 'mail' => true, // Catch mail messages 'logs' => false, // Add the latest log messages 'files' => false, // Show the included files 'config' => false, // Display config settings 'auth' => false, // Display Laravel authentication status 'gate' => false, // Display Laravel Gate checks 'session' => true, // Display session data ], /* |-------------------------------------------------------------------------- | Extra options |-------------------------------------------------------------------------- | | Configure some DataCollectors | */ 'options' => [ 'auth' => [ 'show_name' => false, // Also show the users name/email in the debugbar ], 'db' => [ 'with_params' => true, // Render SQL with the parameters substituted 'timeline' => false, // Add the queries to the timeline 'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files. 'explain' => [ // EXPERIMENTAL: Show EXPLAIN output on queries 'enabled' => false, 'types' => ['SELECT'], // ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+ ], 'hints' => true, // Show hints for common mistakes ], 'mail' => [ 'full_log' => false ], 'views' => [ 'data' => false, //Note: Can slow down the application, because the data can be quite large.. ], 'route' => [ 'label' => true // show complete route on bar ], 'logs' => [ 'file' => null ], ], /* |-------------------------------------------------------------------------- | Inject Debugbar in Response |-------------------------------------------------------------------------- | | Usually, the debugbar is added just before </body>, by listening to the | Response after the App is done. If you disable this, you have to add them | in your template yourself. See http://phpdebugbar.com/docs/rendering.html | */ 'inject' => true, /* |-------------------------------------------------------------------------- | DebugBar route prefix |-------------------------------------------------------------------------- | | Sometimes you want to set route prefix to be used by DebugBar to load | its resources from. Usually the need comes from misconfigured web server or | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97 | */ 'route_prefix' => '_debugbar', ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/sentry.php
Beam/config/sentry.php
<?php return [ 'dsn' => env('SENTRY_DSN'), // capture release as git sha // 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')), // When left empty or `null` the Laravel environment will be used 'environment' => env('SENTRY_ENVIRONMENT'), 'attach_stacktrace' => true, 'breadcrumbs' => [ // Capture Laravel logs in breadcrumbs 'logs' => true, // Capture SQL queries in breadcrumbs 'sql_queries' => true, // Capture bindings on SQL queries logged in breadcrumbs 'sql_bindings' => true, // Capture queue job information in breadcrumbs 'queue_info' => true, // Capture command information in breadcrumbs 'command_info' => true, ], // @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii 'send_default_pii' => true, 'traces_sample_rate' => (float)(env('SENTRY_TRACES_SAMPLE_RATE', 0.0)), 'controllers_base_namespace' => env('SENTRY_CONTROLLERS_BASE_NAMESPACE', 'App\\Http\\Controllers'), ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/horizon.php
Beam/config/horizon.php
<?php return [ /* |-------------------------------------------------------------------------- | Horizon Redis Connection |-------------------------------------------------------------------------- | | This is the name of the Redis connection where Horizon will store the | meta information required for it to function. It includes the list | of supervisors, failed jobs, job metrics, and other information. | */ 'use' => 'default', /* |-------------------------------------------------------------------------- | Horizon Redis Prefix |-------------------------------------------------------------------------- | | This prefix will be used when storing all Horizon data in Redis. You | may modify the prefix when you are running multiple installations | of Horizon on the same server so that they don't have problems. | */ 'prefix' => env('HORIZON_PREFIX', 'horizon:'), /* |-------------------------------------------------------------------------- | Horizon Route Middleware |-------------------------------------------------------------------------- | | These middleware will get attached onto each Horizon route, giving you | the chance to add your own middleware to this list or change any of | the existing middleware. Or, you can simply stick with this list. | */ 'middleware' => ['web'], /* |-------------------------------------------------------------------------- | Queue Wait Time Thresholds |-------------------------------------------------------------------------- | | This option allows you to configure when the LongWaitDetected event | will be fired. Every connection / queue combination may have its | own, unique threshold (in seconds) before this event is fired. | */ 'waits' => [ 'redis:default' => 60, ], /* |-------------------------------------------------------------------------- | Job Trimming Times |-------------------------------------------------------------------------- | | Here you can configure for how long (in minutes) you desire Horizon to | persist the recent and failed jobs. Typically, recent jobs are kept | for one hour while all failed jobs are stored for an entire week. | */ 'trim' => [ 'recent' => 60, 'failed' => 10080, ], /* |-------------------------------------------------------------------------- | Fast Termination |-------------------------------------------------------------------------- | | When this option is enabled, Horizon's "terminate" command will not | wait on all of the workers to terminate unless the --wait option | is provided. Fast termination can shorten deployment delay by | allowing a new instance of Horizon to start while the last | instance will continue to terminate each of its workers. | */ 'fast_termination' => false, /* |-------------------------------------------------------------------------- | Queue Worker Configuration |-------------------------------------------------------------------------- | | Here you may define the queue worker settings used by your application | in all environments. These supervisors and settings handle all your | queued jobs and will be provisioned by Horizon during deployment. | */ 'environments' => [ 'production' => [ 'supervisor-1' => [ 'connection' => 'redis', 'queue' => ['default'], 'balance' => 'simple', 'processes' => 10, 'tries' => 3, ], ], 'local' => [ 'supervisor-1' => [ 'connection' => 'redis', 'queue' => ['default'], 'balance' => 'simple', 'processes' => 3, 'tries' => 3, ], ], ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/cache.php
Beam/config/cache.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Cache Store |-------------------------------------------------------------------------- | | This option controls the default cache connection that gets used while | using this caching library. This connection is used when another is | not explicitly specified when executing a given caching function. | */ 'default' => env('CACHE_DRIVER', 'file'), /* |-------------------------------------------------------------------------- | Cache Stores |-------------------------------------------------------------------------- | | Here you may define all of the cache "stores" for your application as | well as their drivers. You may even define multiple stores for the | same cache driver to group types of items stored in your caches. | | Supported drivers: "apc", "array", "database", "file", | "memcached", "redis", "dynamodb", "null" | */ 'stores' => [ 'apc' => [ 'driver' => 'apc', ], 'array' => [ 'driver' => 'array', 'serialize' => false, ], 'database' => [ 'driver' => 'database', 'table' => 'cache', 'connection' => null, 'lock_connection' => null, ], 'file' => [ 'driver' => 'file', 'path' => storage_path('framework/cache/data'), ], 'memcached' => [ 'driver' => 'memcached', 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 'sasl' => [ env('MEMCACHED_USERNAME'), env('MEMCACHED_PASSWORD'), ], 'options' => [ // Memcached::OPT_CONNECT_TIMEOUT => 2000, ], 'servers' => [ [ 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 'port' => env('MEMCACHED_PORT', 11211), 'weight' => 100, ], ], ], 'redis' => [ 'driver' => 'redis', 'connection' => 'cache', 'lock_connection' => 'default', ], 'dynamodb' => [ 'driver' => 'dynamodb', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 'endpoint' => env('DYNAMODB_ENDPOINT'), ], ], /* |-------------------------------------------------------------------------- | Cache Key Prefix |-------------------------------------------------------------------------- | | When utilizing a RAM based store such as APC or Memcached, there might | be other applications utilizing the same cache. So, we'll specify a | value to get prefixed to all our keys so we can avoid collisions. | */ 'prefix' => env('CACHE_PREFIX', 'beam'), ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/search.php
Beam/config/search.php
<?php return [ /* |-------------------------------------------------------------------------- | Maximum number of returned search results |-------------------------------------------------------------------------- | | This value represents limit for number of returned search results. | IMPORTANT: this number affects each searchable entity separately | e.g.: when maxResultCount is being set to 5 and you search | model_1 and model_2 you can get max 10 results */ 'maxResultCount' => env('SEARCH_MAX_RESULT_COUNT', 5), ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/hashing.php
Beam/config/hashing.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Hash Driver |-------------------------------------------------------------------------- | | This option controls the default hash driver that will be used to hash | passwords for your application. By default, the bcrypt algorithm is | used; however, you remain free to modify this option if you wish. | | Supported: "bcrypt", "argon" | */ 'driver' => 'bcrypt', /* |-------------------------------------------------------------------------- | Bcrypt Options |-------------------------------------------------------------------------- | | Here you may specify the configuration options that should be used when | passwords are hashed using the Bcrypt algorithm. This will allow you | to control the amount of time it takes to hash the given password. | */ 'bcrypt' => [ 'rounds' => env('BCRYPT_ROUNDS', 10), ], /* |-------------------------------------------------------------------------- | Argon Options |-------------------------------------------------------------------------- | | Here you may specify the configuration options that should be used when | passwords are hashed using the Argon algorithm. These will allow you | to control the amount of time it takes to hash the given password. | */ 'argon' => [ 'memory' => 1024, 'threads' => 2, 'time' => 2, ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/view.php
Beam/config/view.php
<?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that should be checked for your views. Of course | the usual Laravel view path has already been registered for you. | */ 'paths' => [ resource_path('views'), ], /* |-------------------------------------------------------------------------- | Compiled View Path |-------------------------------------------------------------------------- | | This option determines where all the compiled Blade templates will be | stored for your application. Typically, this is within the storage | directory. However, as usual, you are free to change this value. | */ 'compiled' => env( 'VIEW_COMPILED_PATH', realpath(storage_path('framework/views')) ), ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/database.php
Beam/config/database.php
<?php use Illuminate\Support\Str; if (!function_exists('configure_redis')) { function configure_redis($database) { // If the app uses Redis Sentinel, different configuration is necessary. // // Default database and password need to be set within options.parameters to be actually used. if ($sentinelService = env('REDIS_SENTINEL_SERVICE')) { $redisClient = env('REDIS_CLIENT', 'predis'); if ($redisClient !== 'predis') { throw new \Exception("Unable to configure Redis Sentinel for client '{$redisClient}', only 'predis' is supported. You can configure the client via 'REDIS_CLIENT' environment variable."); } $redisUrl = env('REDIS_URL'); if ($redisUrl === null) { throw new \Exception("Unable to configure Redis Sentinel. Use 'REDIS_URL' environment variable to configure comma-separated sentinel instances."); } $config = explode(',', $redisUrl); $config['options'] = [ 'replication' => 'sentinel', 'service' => $sentinelService, 'parameters' => [ 'database' => $database, ], ]; if ($password = env('REDIS_PASSWORD')) { $config['options']['parameters']['password'] = $password; } return $config; } // default configuration supporting both url-based and host-port-database-based config. return [ 'url' => env('REDIS_URL'), 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD'), 'port' => env('REDIS_PORT', '6379'), 'database' => $database, ]; } } return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as your default connection for all database work. Of course | you may use many connections at once using the Database library. | */ 'default' => env('DB_CONNECTION', 'mysql'), /* |-------------------------------------------------------------------------- | Database Connections |-------------------------------------------------------------------------- | | Here are each of the database connections setup for your application. | Of course, examples of configuring each database platform that is | supported by Laravel is shown below to make development simple. | | | All database work in Laravel is done through the PHP PDO facilities | so make sure you have the driver for your particular database of | choice installed on your machine before you begin development. | */ 'connections' => [ 'sqlite' => [ 'driver' => 'sqlite', 'url' => env('DATABASE_URL'), 'database' => env('DB_DATABASE', database_path('database.sqlite')), 'prefix' => '', 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), ], 'mysql' => [ 'driver' => 'mysql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'timezone' => '+00:00', 'options' => extension_loaded('pdo_mysql') ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), ]) : [], ], 'pgsql' => [ 'driver' => 'pgsql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '5432'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, 'schema' => 'public', 'sslmode' => 'prefer', ], 'sqlsrv' => [ 'driver' => 'sqlsrv', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '1433'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, ], ], /* |-------------------------------------------------------------------------- | Migration Repository Table |-------------------------------------------------------------------------- | | This table keeps track of all the migrations that have already run for | your application. Using this information, we can determine which of | the migrations on disk haven't actually been run in the database. | */ 'migrations' => 'migrations', /* |-------------------------------------------------------------------------- | Redis Databases |-------------------------------------------------------------------------- | | Redis is an open source, fast, and advanced key-value store that also | provides a richer body of commands than a typical key-value system | such as APC or Memcached. Laravel makes it easy to dig right in. | */ 'redis' => [ 'client' => env('REDIS_CLIENT', 'predis'), 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'predis'), 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), ], 'default' => configure_redis(env('REDIS_DEFAULT_DATABASE', '0')), 'session' => configure_redis(env('REDIS_SESSION_DATABASE', '1')), 'cache' => configure_redis(env('REDIS_CACHE_DATABASE', '2')), 'queue' => configure_redis(env('REDIS_QUEUE_DATABASE', '3')), ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/ziggy.php
Beam/config/ziggy.php
<?php return [ // Filter laravel paths that are passed to JS via Ziggy library 'only' => [ 'properties.switch', 'settings.index', 'authorSegments.testingConfiguration' ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/services.php
Beam/config/services.php
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Mailgun, Postmark, AWS and more. This file provides the de facto | location for this type of information, allowing packages to have | a conventional file to locate the various service credentials. | */ 'mailgun' => [ 'domain' => env('MAILGUN_DOMAIN'), 'secret' => env('MAILGUN_SECRET'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), ], 'postmark' => [ 'token' => env('POSTMARK_TOKEN'), ], 'ses' => [ 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], 'azure_computer_vision' => [ 'endpoint' => env('AZURE_COMPUTER_VISION_ENDPOINT'), 'api_key' => env('AZURE_COMPUTER_VISION_API_KEY'), 'api_version' => env('AZURE_COMPUTER_VISION_API_VERSION', '2024-02-01'), ], 'gorse_recommendation' => [ 'endpoint' => env('GORSE_RECOMMENDATION_ENDPOINT'), 'api_key' => env('GORSE_RECOMMENDATION_API_KEY'), 'url_filter' => env('GORSE_RECOMMENDATION_URL_FILER'), ], 'crm' => [ 'addr' => env('CRM_ADDR'), 'api_key' => env('CRM_API_KEY'), ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/datatables.php
Beam/config/datatables.php
<?php return [ /* * DataTables search options. */ 'search' => [ /* * Smart search will enclose search keyword with wildcard string "%keyword%". * SQL: column LIKE "%keyword%" */ 'smart' => true, /* * Multi-term search will explode search keyword using spaces resulting into multiple term search. */ 'multi_term' => true, /* * Case insensitive will search the keyword in lower case format. * SQL: LOWER(column) LIKE LOWER(keyword) */ 'case_insensitive' => true, /* * Wild card will add "%" in between every characters of the keyword. * SQL: column LIKE "%k%e%y%w%o%r%d%" */ 'use_wildcards' => false, ], /* * DataTables internal index id response column name. */ 'index_column' => 'DT_Row_Index', /* * List of available builders for DataTables. * This is where you can register your custom dataTables builder. */ 'engines' => [ 'eloquent' => \Yajra\DataTables\EloquentDataTable::class, 'query' => \Yajra\DataTables\QueryDataTable::class, 'collection' => \Yajra\DataTables\CollectionDataTable::class, ], /* * DataTables accepted builder to engine mapping. * This is where you can override which engine a builder should use * Note, only change this if you know what you are doing! */ 'builders' => [ //Illuminate\Database\Eloquent\Relations\Relation::class => 'eloquent', //Illuminate\Database\Eloquent\Builder::class => 'eloquent', //Illuminate\Database\Query\Builder::class => 'query', //Illuminate\Support\Collection::class => 'collection', ], /* * Nulls last sql pattern for Posgresql & Oracle. * For MySQL, use '-%s %s' */ 'nulls_last_sql' => '%s %s NULLS LAST', /* * User friendly message to be displayed on user if error occurs. * Possible values: * null - The exception message will be used on error response. * 'throw' - Throws a \Yajra\DataTables\Exceptions\Exception. Use your custom error handler if needed. * 'custom message' - Any friendly message to be displayed to the user. You can also use translation key. */ 'error' => env('DATATABLES_ERROR', null), /* * Default columns definition of dataTable utility functions. */ 'columns' => [ /* * List of columns hidden/removed on json response. */ 'excess' => ['rn', 'row_num'], /* * List of columns to be escaped. If set to *, all columns are escape. * Note: You can set the value to empty array to disable XSS protection. */ 'escape' => '*', /* * List of columns that are allowed to display html content. * Note: Adding columns to list will make us available to XSS attacks. */ 'raw' => ['action'], /* * List of columns are are forbidden from being searched/sorted. */ 'blacklist' => ['password', 'remember_token'], /* * List of columns that are only allowed fo search/sort. * If set to *, all columns are allowed. */ 'whitelist' => '*', ], /* * JsonResponse header and options config. */ 'json' => [ 'header' => [], 'options' => 0, ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/filesystems.php
Beam/config/filesystems.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. The "local" disk, as well as a variety of cloud | based disks are available to your application. Just store away! | */ 'default' => env('FILESYSTEM_DISK', 'local'), /* |-------------------------------------------------------------------------- | Filesystem Disks |-------------------------------------------------------------------------- | | Here you may configure as many filesystem "disks" as you wish, and you | may even configure multiple disks of the same driver. Defaults have | been setup for each driver as an example of the required options. | | Supported Drivers: "local", "ftp", "sftp", "s3" | */ 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public', ], 's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), ], ], /* |-------------------------------------------------------------------------- | Symbolic Links |-------------------------------------------------------------------------- | | Here you may configure the symbolic links that will be created when the | `storage:link` Artisan command is executed. The array keys should be | the locations of the links and the values should be their targets. | */ 'links' => [ public_path('storage') => storage_path('app/public'), ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/dashboard.php
Beam/config/dashboard.php
<?php return [ 'username' => env('DASHBOARD_USERNAME'), 'password' => env('DASHBOARD_PASSWORD'), // TODO temporarily support 2 passwords, remove later after authentication is done 'username2' => env('DASHBOARD_USERNAME2'), 'password2' => env('DASHBOARD_PASSWORD2'), ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/healthcheck.php
Beam/config/healthcheck.php
<?php return [ /** * Base path for the health check endpoints, by default will use / */ 'base-path' => '', /** * List of health checks to run when determining the health * of the service */ 'checks' => [ UKFast\HealthCheck\Checks\DatabaseHealthCheck::class, UKFast\HealthCheck\Checks\LogHealthCheck::class, UKFast\HealthCheck\Checks\RedisHealthCheck::class, UKFast\HealthCheck\Checks\StorageHealthCheck::class ], /** * A list of middleware to run on the health-check route * It's recommended that you have a middleware that only * allows admin consumers to see the endpoint. * * See UKFast\HealthCheck\BasicAuth for a one-size-fits all * solution */ 'middleware' => [], /** * Used by the basic auth middleware */ 'auth' => [ 'user' => env('HEALTH_CHECK_USER'), 'password' => env('HEALTH_CHECK_PASSWORD'), ], /** * Can define a list of connection names to test. Names can be * found in your config/database.php file. By default, we just * check the 'default' connection */ 'database' => [ 'connections' => ['default'], ], /** * Can give an array of required environment values, for example * 'REDIS_HOST'. If any don't exist, then it'll be surfaced in the * context of the healthcheck */ 'required-env' => [], /** * List of addresses and expected response codes to * monitor when running the HTTP health check * * e.g. address => response code */ 'addresses' => [], /** * Default response code for HTTP health check. Will be used * when one isn't provided in the addresses config. */ 'default-response-code' => 200, /** * Default timeout for cURL requests for HTTP health check. */ 'default-curl-timeout' => 2.0, /** * An array of other services that use the health check package * to hit. The URI should reference the endpoint specifically, * for example: https://api.example.com/health */ 'x-service-checks' => [], /** * A list of stores to be checked by the Cache health check */ 'cache' => [ 'stores' => [ 'array' ] ], /** * A list of disks to be checked by the Storage health check */ 'storage' => [ 'disks' => [ 'local', ] ], /** * Additional config can be put here. For example, a health check * for your .env file needs to know which keys need to be present. * You can pass this information by specifying a new key here then * accessing it via config('healthcheck.env') in your healthcheck class */ ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/mail.php
Beam/config/mail.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Mailer |-------------------------------------------------------------------------- | | This option controls the default mailer that is used to send any email | messages sent by your application. Alternative mailers may be setup | and used as needed; however, this mailer will be used by default. | */ 'default' => env('MAIL_MAILER', 'smtp'), /* |-------------------------------------------------------------------------- | Mailer Configurations |-------------------------------------------------------------------------- | | Here you may configure all of the mailers used by your application plus | their respective settings. Several examples have been configured for | you and you are free to add your own as your application requires. | | Laravel supports a variety of mail "transport" drivers to be used while | sending an e-mail. You will specify which one you are using for your | mailers below. You are free to add additional mailers as required. | | Supported: "smtp", "sendmail", "mailgun", "ses", | "postmark", "log", "array" | */ 'mailers' => [ 'smtp' => [ 'transport' => 'smtp', 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 'port' => env('MAIL_PORT', 587), 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'timeout' => null, 'auth_mode' => null, ], 'ses' => [ 'transport' => 'ses', ], 'mailgun' => [ 'transport' => 'mailgun', ], 'postmark' => [ 'transport' => 'postmark', ], 'sendmail' => [ 'transport' => 'sendmail', 'path' => '/usr/sbin/sendmail -bs', ], 'log' => [ 'transport' => 'log', 'channel' => env('MAIL_LOG_CHANNEL'), ], 'array' => [ 'transport' => 'array', ], ], /* |-------------------------------------------------------------------------- | Global "From" Address |-------------------------------------------------------------------------- | | You may wish for all e-mails sent by your application to be sent from | the same address. Here, you may specify a name and address that is | used globally for all e-mails that are sent by your application. | */ 'from' => [ 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 'name' => env('MAIL_FROM_NAME', 'Example'), ], /* |-------------------------------------------------------------------------- | Markdown Mail Settings |-------------------------------------------------------------------------- | | If you are using Markdown based email rendering, you may configure your | theme and component paths here, allowing you to customize the design | of the emails. Or, you may simply stick with the Laravel defaults! | */ 'markdown' => [ 'theme' => 'default', 'paths' => [ resource_path('views/vendor/mail'), ], ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/cors.php
Beam/config/cors.php
<?php return [ /* |-------------------------------------------------------------------------- | Cross-Origin Resource Sharing (CORS) Configuration |-------------------------------------------------------------------------- | | Here you may configure your settings for cross-origin resource sharing | or "CORS". This determines what cross-origin operations may execute | in web browsers. You are free to adjust these settings as needed. | | To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS | */ 'paths' => ['api/*', 'sanctum/csrf-cookie'], 'allowed_methods' => ['GET', 'POST'], 'allowed_origins' => explode(',', (env('APP_CORS_ALLOWED_ORIGINS') ?: '*')), 'allowed_origins_patterns' => [], 'allowed_headers' => ['Authorization', 'Content-Type'], 'exposed_headers' => [], 'max_age' => 0, 'supports_credentials' => false, ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/broadcasting.php
Beam/config/broadcasting.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Broadcaster |-------------------------------------------------------------------------- | | This option controls the default broadcaster that will be used by the | framework when an event needs to be broadcast. You may set this to | any of the connections defined in the "connections" array below. | | Supported: "pusher", "ably", "redis", "log", "null" | */ 'default' => env('BROADCAST_DRIVER', 'null'), /* |-------------------------------------------------------------------------- | Broadcast Connections |-------------------------------------------------------------------------- | | Here you may define all of the broadcast connections that will be used | to broadcast events to other systems or over websockets. Samples of | each available type of connection are provided inside this array. | */ 'connections' => [ 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_APP_KEY'), 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), 'useTLS' => true, ], ], 'ably' => [ 'driver' => 'ably', 'key' => env('ABLY_KEY'), ], 'redis' => [ 'driver' => 'redis', 'connection' => 'default', ], 'log' => [ 'driver' => 'log', ], 'null' => [ 'driver' => 'null', ], ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/config/auth.php
Beam/config/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for your application. You may change these defaults | as required, but they're a perfect start for most applications. | */ 'defaults' => [ 'guard' => 'jwt', 'passwords' => null, ], /* |-------------------------------------------------------------------------- | Authentication Guards |-------------------------------------------------------------------------- | | Next, you may define every authentication guard for your application. | Of course, a great default configuration has been defined for you | here which uses session storage and the Eloquent user provider. | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | Supported: "session", "token" | */ 'guards' => [ 'jwt' => [ 'driver' => 'jwt', 'provider' => null, ], 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => null, 'hash' => false, ], ], /* |-------------------------------------------------------------------------- | User Providers |-------------------------------------------------------------------------- | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | If you have multiple user tables or models you may configure multiple | sources which represent each model / table. These sources may then | be assigned to any extra authentication guards you have defined. | | Supported: "database", "eloquent" | */ 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\User::class, ], // 'users' => [ // 'driver' => 'database', // 'table' => 'users', // ], ], /* |-------------------------------------------------------------------------- | Resetting Passwords |-------------------------------------------------------------------------- | | You may specify multiple password reset configurations if you have more | than one user table or model in the application and you want to have | separate password reset settings based on the specific user types. | | The expire time is the number of minutes that the reset token should be | considered valid. This security feature keeps tokens short-lived so | they have less time to be guessed. You may change this as needed. | */ 'passwords' => [ 'users' => [ 'provider' => 'users', 'table' => 'password_resets', 'expire' => 60, 'throttle' => 60, ], ], /* |-------------------------------------------------------------------------- | Password Confirmation Timeout |-------------------------------------------------------------------------- | | Here you may define the amount of seconds before a password confirmation | times out and the user is prompted to re-enter their password via the | confirmation screen. By default, the timeout lasts for three hours. | */ 'password_timeout' => 10800, ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/database/migrations/2023_09_07_080805_create_article_meta_table.php
Beam/database/migrations/2023_09_07_080805_create_article_meta_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateArticleMetaTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('article_meta', function (Blueprint $table) { $table->id(); $table->integer('article_id')->unsigned(); $table->string('key'); $table->text('value'); $table->timestamps(); $table->foreign('article_id')->references('id')->on('articles'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('article_meta'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/database/seeders/EntitySeeder.php
Beam/database/seeders/EntitySeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Remp\BeamModule\Model\Entity; use Remp\BeamModule\Model\EntityParam; class EntitySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { if (!Entity::where(['name' => 'user'])->exists()) { $userEntity = new Entity(); $userEntity->name = "user"; $userEntity->save(); $userIdParam = new EntityParam(); $userIdParam->name = "id"; $userIdParam->type = EntityParam::TYPE_STRING; $userEmailParam = new EntityParam(); $userEmailParam->name = "email"; $userEmailParam->type = EntityParam::TYPE_STRING; $userEntity->params()->saveMany([ $userIdParam, $userEmailParam, ]); } } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/database/seeders/PropertySeeder.php
Beam/database/seeders/PropertySeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Remp\BeamModule\Model\Account; use Remp\BeamModule\Model\Property; class PropertySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { /** @var Account $account */ $account = Account::factory()->create(); /** @var Property $property */ $property = Property::factory()->make(); $account->properties()->save($property); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/database/seeders/DatabaseSeeder.php
Beam/database/seeders/DatabaseSeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->call(PropertySeeder::class); $this->call(SegmentSeeder::class); $this->call(ArticleSeeder::class); $this->call(EntitySeeder::class); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/database/seeders/SegmentSeeder.php
Beam/database/seeders/SegmentSeeder.php
<?php namespace Database\Seeders; use Remp\BeamModule\Model\Segment; use Remp\BeamModule\Model\SegmentGroup; use Illuminate\Database\Seeder; class SegmentSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->command->getOutput()->writeln('Generating segments...'); $rempGroup = SegmentGroup::getByCode(SegmentGroup::CODE_REMP_SEGMENTS); if (!$rempGroup) { $rempGroup = new SegmentGroup(); $rempGroup->name = 'REMP Segments'; $rempGroup->code = SegmentGroup::CODE_REMP_SEGMENTS; $rempGroup->type = SegmentGroup::TYPE_RULE; $rempGroup->sorting = 100; $rempGroup->save(); } foreach ($this->industrySegments() as $blueprint) { if (!Segment::where(['code' => $blueprint['code']])->exists()) { $rules = $blueprint['rulesDef']; $blueprint['segment_group_id'] = $rempGroup->id; unset($blueprint['rulesDef']); $segment = Segment::create($blueprint); foreach ($rules as $rule) { $segment->rules()->create($rule); } $this->command->getOutput()->writeln(" * Segment <info>{$blueprint['code']}</info> created"); } else { $this->command->getOutput()->writeln(" * Segment <info>{$blueprint['code']}</info> exists"); } } } public function industrySegments() { return [ // all pageviews [ 'name' => 'First pageview in 30 days', 'code' => 'first-pageview-in-30-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 30*24*60, 'count' => 1, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '=', 'fields' => [], 'flags' => [], ], ], ], [ 'name' => 'First pageview in 90 days', 'code' => 'first-pageview-in-90-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 90*24*60, 'count' => 1, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '=', 'fields' => [], 'flags' => [], ], ], ], [ 'name' => '2-5 pageviews in 30 days', 'code' => '2-5-pageviews-in-30-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 90*24*60, 'count' => 2, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '>=', 'fields' => [], 'flags' => [], ], [ 'timespan' => 90*24*60, 'count' => 5, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '<=', 'fields' => [], 'flags' => [], ], ], ], [ 'name' => '6-10 pageviews in 30 days', 'code' => '6-10-pageviews-in-30-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 90*24*60, 'count' => 6, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '>=', 'fields' => [], 'flags' => [], ], [ 'timespan' => 90*24*60, 'count' => 10, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '<=', 'fields' => [], 'flags' => [], ], ], ], [ 'name' => '11+ pageviews in 30 days', 'code' => '11-plus-pageviews-in-30-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 90*24*60, 'count' => 11, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '>=', 'fields' => [], 'flags' => [], ], ], ], // article pageviews [ 'name' => 'First article view in 30 days', 'code' => 'first-article-in-30-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 90*24*60, 'count' => 1, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '=', 'fields' => [], 'flags' => [[ "key" =>"_article","value" => "1"]], ], ], ], [ 'name' => '2-3 article views in 30 days', 'code' => '2-3-article-views-in-30-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 90*24*60, 'count' => 2, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '>=', 'fields' => [], 'flags' => [[ "key" =>"_article","value" => "1"]], ], [ 'timespan' => 90*24*60, 'count' => 3, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '<=', 'fields' => [], 'flags' => [[ "key" =>"_article","value" => "1"]], ], ], ], [ 'name' => '4+ article views in 30 days', 'code' => '4-plus-article-views-in-30-days', 'active' => true, 'rulesDef' => [ [ 'timespan' => 90*24*60, 'count' => 4, 'event_category' => 'pageview', 'event_action' => 'load', 'operator' => '>=', 'fields' => [], 'flags' => [[ "key" =>"_article","value" => "1"]], ], ], ], // commerce [ 'name' => 'Never seen the checkout', 'code' => 'never-seen-the-checkout', 'active' => true, 'rulesDef' => [ [ 'timespan' => 10*365*24*60, 'count' => 0, 'event_category' => 'commerce', 'event_action' => 'checkout', 'operator' => '=', 'fields' => [], 'flags' => [], ], ], ], [ 'name' => "Seen checkout once and didn't pay", 'code' => 'seen-checkout-once-didnt-pay', 'active' => true, 'rulesDef' => [ [ 'timespan' => 10*365*24*60, 'count' => 1, 'event_category' => 'commerce', 'event_action' => 'checkout', 'operator' => '=', 'fields' => [], 'flags' => [], ], [ 'timespan' => 10*365*24*60, 'count' => 0, 'event_category' => 'commerce', 'event_action' => 'purchase', 'operator' => '=', 'fields' => [], 'flags' => [], ], ], ], [ 'name' => "Seen checkout 2-5x and didn't pay", 'code' => 'seen-checkout-2-5-didnt-pay', 'active' => true, 'rulesDef' => [ [ 'timespan' => 10*365*24*60, 'count' => 1, 'event_category' => 'commerce', 'event_action' => 'checkout', 'operator' => '=', 'fields' => [], 'flags' => [], ], [ 'timespan' => 10*365*24*60, 'count' => 1, 'event_category' => 'commerce', 'event_action' => 'purchase', 'operator' => '>=', 'fields' => [], 'flags' => [], ], [ 'timespan' => 10*365*24*60, 'count' => 5, 'event_category' => 'commerce', 'event_action' => 'purchase', 'operator' => '<=', 'fields' => [], 'flags' => [], ], ], ], ]; } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/database/seeders/ArticleSeeder.php
Beam/database/seeders/ArticleSeeder.php
<?php namespace Database\Seeders; use Faker\Generator; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Seeder; use Remp\BeamModule\Model\Article; use Remp\BeamModule\Model\Author; use Remp\BeamModule\Model\Conversion; use Remp\BeamModule\Model\Property; use Remp\BeamModule\Model\Section; use Remp\BeamModule\Model\Tag; class ArticleSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run(Generator $faker) { /** @var Property $property */ $properties = Property::all(); $sections = Section::factory()->count(3)->create(); $tags = Tag::factory()->count(10)->create(); /** @var Collection $articles */ $articles = Article::factory()->count(50)->create([ 'property_uuid' => $properties->random()->uuid, ])->each(function (Article $article) use ($sections, $tags) { $article->sections()->save($sections[rand(0, count($sections)-1)]); $article->tags()->save($tags[rand(0, count($tags)-1)]); }); $authors = Author::factory()->count(5)->create(); $articles->each(function (Article $article) use ($authors) { $article->authors()->attach($authors->random()); }); $articles->each(function (Article $article) use ($faker) { $article->conversions()->saveMany( Conversion::factory()->count($faker->numberBetween(5,20))->make([ 'article_id' => $article->id, ]) ); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/resources/views/welcome.blade.php
Beam/resources/views/welcome.blade.php
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/resources/views/widgets/gender_balance.blade.php
Beam/resources/views/widgets/gender_balance.blade.php
<div class="pmb-block"> <div class="pmbb-header"> <h2><i class="zmdi zmdi-male-female m-r-5"></i> Gender balance - first photo</h2> </div> @if (is_null($menCount) || is_null($womenCount)) No data available. @elseif(is_null($womenPercentage)) No people identified. @else <div class="pmbb-body p-l-30"> <div class="pmbb-view"> <dl class="dl-horizontal"> <dt>Men count</dt> <dd>{{$menCount}}</dd> </dl> <dl class="dl-horizontal"> <dt>Women count</dt> <dd>{{$womenCount}}</dd> </dl> <dl class="dl-horizontal"> <dt>Women representation</dt> <dd>{{$womenPercentage}}%</dd> </dl> </div> </div> @endif </div>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
dsiddharth2/php-zxing
https://github.com/dsiddharth2/php-zxing/blob/306a0281c017ddc96a514da2ea267fa0b5278d06/src/examples/example.php
src/examples/example.php
<?php /* Descrition : PHPZxing Example file license: MIT-style authors: - Siddharth Deshpande (dsiddharth2@gmail.com) ... * PHPZxing * Version 1.0.1 * Copyright (c) 2018 Siddharth Deshpande * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ error_reporting(E_ALL); ini_set('display_errors', 1); require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . "PHPZxing" . DIRECTORY_SEPARATOR . "PHPZxingBase.php"; require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . "PHPZxing" . DIRECTORY_SEPARATOR . "PHPZxingInterface.php"; require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . "PHPZxing" . DIRECTORY_SEPARATOR . "PHPZxingDecoder.php"; require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . "PHPZxing" . DIRECTORY_SEPARATOR . "ZxingImage.php"; require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . "PHPZxing" . DIRECTORY_SEPARATOR . "ZxingBarNotFound.php"; use PHPZxing\PHPZxingDecoder; // Bar Code Found $decoder = new PHPZxingDecoder(); $data = $decoder->decode('../images/Code128Barcode.jpg'); if($data->isFound()) { $data->getImageValue(); $data->getFormat(); $data->getType(); } // Bar Code Not Found $decoder = new PHPZxingDecoder(); $data = $decoder->decode('../images/no_bar_code_found.jpeg'); if($data->isFound()) { $data->getImageValue(); $data->getFormat(); $data->getType(); } else { echo "No Bar Code Found"; } // Bar Code Options $config = array( 'try_harder' => true, 'crop' => '100,200,300,300', ); $decoder = new PHPZxingDecoder($config); $decodedArray = $decoder->decode('../images'); if(is_array($decodedArray)){ foreach ($decodedArray as $data) { if($data->isFound()) { print_r($data); } } } // Send Multiple Images $decoder = new PHPZxingDecoder(); $imageArrays = array( '../images/Code128Barcode.jpg', '../images/Code39Barcode.jpg' ); $decodedArray = $decoder->decode($imageArrays); foreach ($decodedArray as $data) { if($data instanceof PHPZxing\ZxingImage) { print_r($data); } else { echo "Bar Code cannot be read"; } } // Bar Code options for reading multiple bar codes in the same image $config = array( 'try_harder' => true, 'multiple_bar_codes' => true ); $decoder = new PHPZxingDecoder($config); $decodedData = $decoder->decode('../images/multiple_bar_codes.jpg'); print_r($decodedData); // Bar Code options for reading multiple bar codes in the same image and restrict to CODE_128 and PDF_417 $config = array( 'try_harder' => true, 'multiple_bar_codes' => true, 'possible_formats' => ' CODE_128,PDF_417' ); $decoder = new PHPZxingDecoder($config); $decodedData = $decoder->decode('../images/multiple_bar_codes.jpg'); print_r($decodedData); ?>
php
MIT
306a0281c017ddc96a514da2ea267fa0b5278d06
2026-01-05T05:12:58.132538Z
false
dsiddharth2/php-zxing
https://github.com/dsiddharth2/php-zxing/blob/306a0281c017ddc96a514da2ea267fa0b5278d06/src/PHPZxing/PHPZxingDecoder.php
src/PHPZxing/PHPZxingDecoder.php
<?php /* Descrition : PHPZing Decoder wrapper of Java Zxing license: MIT-style authors: - Siddharth Deshpande (dsiddharth2@gmail.com) requires: - Zxing - core.jar - Zxing - javase.jar Provides: PHPZxingDecoder - ... * PHPZxingDecoder * Version 1.0.1 * Copyright (c) 2018 Siddharth Deshpande * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ namespace PHPZxing; use PHPZxing\PHPZxingBase; class PHPZxingDecoder extends PHPZxingBase { // Java De-coder Class that takes the Command line public $JAVA_DECODER_CLASS = 'com.google.zxing.client.j2se.CommandLineRunner'; // Checks if the image is a single one private $_SINGLE_IMAGE = null; // Store for multiple array images private $_ARRAY_IMAGES = null; // Space while creating the command private $SPACE = " "; // Use the TRY_HARDER hint, default is normal (mobile) mode private $try_harder = false; // Scans image for multiple barcodes in single image private $multiple_bar_codes = false; // crop=left,top,width,height: Only examine cropped region of input image(s) private $crop = false; //Formats to decode, where format is any value in BarcodeFormat private $possible_formats = false; // Constructor for PHPZxingDecoder public function __construct($config = array()) { if(isset($config['try_harder']) && array_key_exists('try_harder', $config)) { $this->try_harder = boolval($config['try_harder']); } if(isset($config['multiple_bar_codes']) && array_key_exists('multiple_bar_codes', $config)) { $this->multiple_bar_codes = boolval($config['multiple_bar_codes']); } if(isset($config['crop']) && array_key_exists('crop', $config)) { $this->crop = strval($config['crop']); } if(isset($config['returnAs']) && array_key_exists('returnAs', $config)) { $this->returnAs = strval($config['returnAs']); } if(isset($config['possible_formats']) && array_key_exists('possible_formats', $config)) { $this->possible_formats = strval($config['possible_formats']); } } private function basePrepare() { $command = ""; $command = $command . $this->getJavaPath() . $this->SPACE . "-cp" . $this->SPACE; $command = $command . $this->getJARPath() . PATH_SEPARATOR . $this->getCorePAth() . PATH_SEPARATOR . $this->getJcommanderPath() . $this->SPACE; $command = $command . $this->JAVA_DECODER_CLASS . $this->SPACE; return $command; } private function prepareImageArray() { $image = array(); foreach ($this->_ARRAY_IMAGES as $arrayImage) { try { if(!file_exists($arrayImage)) { throw new \Exception($arrayImage . ": file does not exist"); } $command = $this->basePrepare(); $command = $command . $arrayImage . $this->SPACE; if($this->try_harder == true) { $command = $command . "--try_harder" . $this->SPACE; } if($this->multiple_bar_codes == true) { $command = $command . "--multi" . $this->SPACE; } if($this->crop != false) { $command = $command . "--crop=" . $this->crop . $this->SPACE; } if ($this->possible_formats != false) { $command = $command . "--possible_formats " . $this->possible_formats . $this->SPACE; } $script_output = ""; exec($command, $script_output); $image[] = current($this->createImages($script_output)); } catch(\Exception $e) { echo $e->getMessage(); } } return $image; } private function prepareSingleImage() { $command = $this->basePrepare(); $command = $command . $this->_SINGLE_IMAGE . $this->SPACE; if($this->try_harder == true) { $command = $command . "--try_harder" . $this->SPACE; } if($this->multiple_bar_codes == true) { $command = $command . "--multi" . $this->SPACE; } if($this->crop != false) { $command = $command . "--crop=" . $this->crop . $this->SPACE; } if ($this->possible_formats != false) { $command = $command . "--possible_formats " . $this->possible_formats . $this->SPACE; } exec($command, $script_output); return $this->createImages($script_output); } /** * Function creates images array that gives the decoded data in array */ private function createImages($output) { $image = array(); foreach ($output as $key => $singleLine) { if (preg_match('/\(format/', $singleLine)) { $imageInfo = $singleLine; $startPos = strpos($imageInfo, "(") + 1; $endPos = strpos($imageInfo, ")"); $dataStr = substr($imageInfo, $startPos, $endPos - $startPos); $dataExplode = explode(",", $dataStr); $contentFormat = explode(":", $dataExplode[0]); $format = $contentFormat[1]; $contentFormat = explode(":", $dataExplode[1]); $type = $contentFormat[1]; $imageValue = $output[$key + 2]; $exploded = explode(" ", $singleLine); $imagePath = array_shift($exploded); $image[] = new ZxingImage($imagePath, $imageValue, $format, $type); } else if(preg_match('/No barcode found/', $singleLine)) { $exploded = explode(" ", $singleLine); $imagePath = array_shift($exploded); $image[] = new ZxingBarNotFound($imagePath, 101, "No barcode found"); } } return $image; } /** * Function that creates a command using the options provided */ public function prepare() { if(is_array($this->_ARRAY_IMAGES)) { return $this->prepareImageArray(); } else { return $this->prepareSingleImage(); } } public function setSingleImage($image) { $this->_SINGLE_IMAGE = $image; } public function setArrayImages($images) { $this->_ARRAY_IMAGES = $images; } /** * Send an image and returns an Object of ZxingImage * @return [Array] ZxingImage */ public function decode($image = null) { try { if(is_array($image)) { $this->setArrayImages($image); if($this->_ARRAY_IMAGES == null) { throw new \Exception("Nothing to decode"); } } else { if(!file_exists($image)) { throw new \Exception("File/Folder does not exist"); } $this->setSingleImage($image); if($this->_SINGLE_IMAGE == null) { throw new \Exception("Nothing to decode"); } } $image = $this->prepare(); if(empty($image)) { throw new \Exception("Is the java PATH set correctly ? Current Path set is : " . $this->getJavaPath()); } // If the image is single then return the actual image if(count($image) == 1) { return current($image); } return $image; } catch(\Exception $e) { echo $e->getMessage(); } } } // End Class
php
MIT
306a0281c017ddc96a514da2ea267fa0b5278d06
2026-01-05T05:12:58.132538Z
false
dsiddharth2/php-zxing
https://github.com/dsiddharth2/php-zxing/blob/306a0281c017ddc96a514da2ea267fa0b5278d06/src/PHPZxing/ZxingImage.php
src/PHPZxing/ZxingImage.php
<?php /* Descrition : ZxingImage - returns the decoded images in ZxingImage Object license: MIT-style authors: - Siddharth Deshpande (dsiddharth2@gmail.com) ... * PHPZxing * Version 1.0.1 * Copyright (c) 2018 Siddharth Deshpande * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ namespace PHPZxing; use PHPZxing\PHPZxingInterface; class ZxingImage implements PHPZxingInterface { // Decoded Value from source private $imageValue = null; // Format of decoded data - CODE_39 etc.. private $format = null; // Type of decoded data - TEXT, URI etc.. private $type = null; // Path of the image decoded private $imagePath = null; public function __construct($imagePath, $imageValue , $format, $type) { $this->imageValue = $imageValue; $this->format = $format; $this->type = $type; $this->imagePath = $imagePath; } public function isFound() { return true; } public function getImageValue() { return $this->imageValue; } public function getFormat() { return $this->format; } public function getType() { return $this->type; } public function getImagePath() { return $this->imagePath; } }
php
MIT
306a0281c017ddc96a514da2ea267fa0b5278d06
2026-01-05T05:12:58.132538Z
false
dsiddharth2/php-zxing
https://github.com/dsiddharth2/php-zxing/blob/306a0281c017ddc96a514da2ea267fa0b5278d06/src/PHPZxing/PHPZxingBase.php
src/PHPZxing/PHPZxingBase.php
<?php /* Descrition : PHPZxingBase Base class that has all base stuff stored license: MIT-style authors: - Siddharth Deshpande (dsiddharth2@gmail.com) ... * PHPZxing * Version 1.0.1 * Copyright (c) 2018 Siddharth Deshpande * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ namespace PHPZxing; class PHPZxingBase { // name of the javase.jar file located in /src/bin directory private $_JAVASE_PATH = 'javase-3.4.1.jar'; // name of the core.jar file located in /src/bin directory private $_CORE_PATH = "core-3.4.1.jar"; // name of the jcommander.jar file located in /src/bin directory private $_JCOMMANDER_PATH = "jcommander-1.72.jar"; // location of java in your machine private $_JAVA_PATH = "/usr/bin/java"; public function getJavaPath() { return $this->_JAVA_PATH; } public function getJARPath() { return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . $this->_JAVASE_PATH; } public function getCorePAth() { return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . $this->_CORE_PATH; } public function getJcommanderPath() { return dirname(__DIR__) . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . $this->_JCOMMANDER_PATH; } /** * Set the default java path which we will use for decoding */ public function setJavaPath($javaPath = "/usr/bin/java") { $this->_JAVA_PATH = $javaPath; } }
php
MIT
306a0281c017ddc96a514da2ea267fa0b5278d06
2026-01-05T05:12:58.132538Z
false
dsiddharth2/php-zxing
https://github.com/dsiddharth2/php-zxing/blob/306a0281c017ddc96a514da2ea267fa0b5278d06/src/PHPZxing/PHPZxingInterface.php
src/PHPZxing/PHPZxingInterface.php
<?php /* Descrition : PHPZxingInterface interface that will have all the interface methods stored license: MIT-style authors: - Siddharth Deshpande (dsiddharth2@gmail.com) ... * PHPZxing * Version 1.0.1 * Copyright (c) 2018 Siddharth Deshpande * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ namespace PHPZxing; interface PHPZxingInterface { public function isFound(); }
php
MIT
306a0281c017ddc96a514da2ea267fa0b5278d06
2026-01-05T05:12:58.132538Z
false
dsiddharth2/php-zxing
https://github.com/dsiddharth2/php-zxing/blob/306a0281c017ddc96a514da2ea267fa0b5278d06/src/PHPZxing/ZxingBarNotFound.php
src/PHPZxing/ZxingBarNotFound.php
<?php /* Descrition : ZxingBarNotFound - returns the obejct of ZxingBarNotFound if any bar / Qr Code is not found license: MIT-style authors: - Siddharth Deshpande (dsiddharth2@gmail.com) ... * PHPZxing * Version 1.0.1 * Copyright (c) 2018 Siddharth Deshpande * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ namespace PHPZxing; use PHPZxing\PHPZxingInterface; class ZxingBarNotFound implements PHPZxingInterface { // Path of the image decoded private $imagePath = null; // Error Code of the image private $imageErrorCode = null; // Message of error private $message = null; public function __construct($imagePath, $imageErrorCode , $message) { $this->imagePath = $imagePath; $this->imageErrorCode = $imageErrorCode; $this->message = $message; } public function getImagePath() { return $this->imagePath; } public function getImageErrorCode() { return $this->imageErrorCode; } public function getErrorMessage() { return $this->message; } public function isFound() { return false; } }
php
MIT
306a0281c017ddc96a514da2ea267fa0b5278d06
2026-01-05T05:12:58.132538Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = PhpCsFixer\Finder::create() ->exclude('vendor') ->in(__DIR__) ; $config = new PhpCsFixer\Config(); return $config->setRules([ '@PSR12' => true, 'array_indentation' => true, 'array_syntax' => ['syntax' => 'short'], 'binary_operator_spaces' => ['operators' => ['=>' => 'single_space', '=' => 'single_space']], 'blank_line_before_statement' => ['statements' => ['return']], 'function_declaration' => ['closure_function_spacing' => 'none', 'closure_fn_spacing' => 'none'], 'method_chaining_indentation' => true, 'no_extra_blank_lines' => ['tokens' => ['attribute', 'break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use']], 'phpdoc_no_package' => true, 'statement_indentation' => true, ]) ->setFinder($finder) ;
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/Util.php
src/Util.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO; use ReflectionClass; use ReflectionProperty; /** * A collection of utilities. * * @author Toha <tohenk@yahoo.com> */ class Util { /** * @var ?string */ protected static $version = null; /** * Normalize namespace. * * @param ?string $namespace * @return string|null */ public static function normalizeNamespace($namespace) { if ($namespace && substr($namespace, 0, 1) === '/') { $namespace = substr($namespace, 1); } return $namespace; } /** * Concatenate namespace with data using separator. * * @param ?string $namespace * @param ?string $data * @param bool $prefix * @param string $separator * @return string */ public static function concatNamespace($namespace, $data, $prefix = true, $separator = ',') { if ($namespace) { if ($prefix && substr($namespace, 0, 1) !== '/') { $namespace = '/' . $namespace; } if ($data) { $namespace .= $separator; } } return $namespace . $data; } /** * Normalize request headers from key-value pair array. * * @param array<string, mixed> $headers * @return string[] */ public static function normalizeHeaders($headers) { return array_map( function($key, $value) { return "$key: $value"; }, array_keys($headers), $headers ); } /** * Handles deprecated header options in an array. * * This function checks the format of the provided array of headers. If the headers are in the old * non-associative format (numeric indexed), it triggers a deprecated warning and converts them * to the new key-value array format. * * @param array<int|string, mixed> $headers A reference to the array of HTTP headers to be processed. This array may * be modified if the headers are in the deprecated format. * * @return void This function modifies the input array in place and does not return any value. */ public static function handleDeprecatedHeaderOptions(&$headers) { if (count($headers) > 0) { // Check if the array is not associative (indicating old format) if (array_values($headers) == $headers) { trigger_error('You are using a deprecated header format. Please update to the new key-value array format.', E_USER_DEPRECATED); $newHeaders = []; foreach ($headers as $header) { list($key, $value) = explode(': ', $header, 2); $newHeaders[$key] = $value; } $headers = $newHeaders; // Convert to new format } } } /** * Truncate a long string message. * * @param string $message * @param integer $len * @return string */ public static function truncate($message, $len = 100) { if ($message && strlen($message) > $len) { $message = sprintf('%s... %d more', substr($message, 0, $len), strlen($message) - $len); } return $message; } /** * Convert array or any value for string representaion. * * @param mixed $value * @return string */ public static function toStr($value) { $result = null; if (is_array($value)) { $values = []; $hasKeys = true; foreach ($value as $k => $v) { $values[$k] = static::toStr($v); if (is_int($k) && $hasKeys) { $hasKeys = false; } } if ($hasKeys) { $values = array_map( function($key, $value) { return "\"$key\":$value"; }, array_keys($values), $values ); $result = sprintf('{%s}', implode(',', $values)); } else { $result = sprintf('[%s]', implode(',', $values)); } } elseif (is_resource($value)) { fseek($value, 0); $result = '<' . static::truncate(stream_get_contents($value), 32) . '>'; } elseif (is_string($value)) { $result = '"' . $value . '"'; } elseif (interface_exists('UnitEnum') && $value instanceof \UnitEnum) { if ($value instanceof \BackedEnum) { $result = (string) $value->value; } else { $result = var_export($value, true); } } elseif (is_object($value) && method_exists($value, '__toString')) { $result = (string) $value; } elseif (is_object($value)) { $r = new ReflectionClass($value); $values = []; foreach ($r->getProperties(version_compare(PHP_VERSION, '8.1.0', '<') ? ReflectionProperty::IS_PUBLIC : null) as $prop) { $values[$prop->getName()] = $prop->getValue($value); } $result = self::toStr($values); } else { $result = var_export($value, true); } return $result; } /** * Create a resource from value. * * @param string $value * @return resource|null */ public static function toResource($value) { if (false !== ($result = fopen('php://memory', 'w+'))) { fwrite($result, $value); return $result; } return null; } /** * Get Composer autoloader instance. * * @return \Composer\Autoload\ClassLoader|null */ public static function getComposer() { if ($autoloaders = spl_autoload_functions()) { foreach ($autoloaders as $autoload) { if (is_array($autoload)) { $class = $autoload[0]; if (is_object($class) && 'Composer\Autoload\ClassLoader' === get_class($class)) { return $class; } } } } return null; } /** * Get package version from Composer. * * @return string */ public static function getVersion() { if (null === static::$version) { if (($composer = static::getComposer()) && false !== ($content = file_get_contents(__DIR__.'/../composer.json'))) { $package = json_decode($content, true); $packageName = $package['name']; $r = new ReflectionClass($composer); if (($filename = $r->getFileName()) && ($composerDir = dirname($filename)) && is_readable($installed = $composerDir.DIRECTORY_SEPARATOR.'installed.json')) { if ($content = file_get_contents($installed)) { $packages = json_decode($content, true); $packages = isset($packages['packages']) ? $packages['packages'] : $packages; foreach ($packages as $package) { if (isset($package['name']) && $package['name'] === $packageName) { static::$version = $package['version']; break; } } } } } } return static::$version; } }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/Client.php
src/Client.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO; use ElephantIO\Engine\EngineInterface; use ElephantIO\Engine\SocketIO\Version0X; use ElephantIO\Engine\SocketIO\Version1X; use ElephantIO\Engine\SocketIO\Version2X; use ElephantIO\Engine\SocketIO\Version3X; use ElephantIO\Engine\SocketIO\Version4X; use ElephantIO\Exception\SocketException; use InvalidArgumentException; use Psr\Log\NullLogger; use Psr\Log\LoggerInterface; /** * Represents socket.io client which will send and receive the requests to the * socket.io server. * * @author Baptiste Clavié <baptiste@wisembly.com> * @author Toha <tohenk@yahoo.com> */ class Client { public const CLIENT_0X = 0; public const CLIENT_1X = 1; public const CLIENT_2X = 2; public const CLIENT_3X = 3; public const CLIENT_4X = 4; /** @var \ElephantIO\Engine\EngineInterface */ private $engine; /** @var \Psr\Log\LoggerInterface */ private $logger; public function __construct(EngineInterface $engine, ?LoggerInterface $logger = null) { $this->engine = $engine; $this->logger = $logger ?: new NullLogger(); $this->engine->setLogger($this->logger); } public function __destruct() { $this->disconnect(); } /** * Connect to server. * * @return \ElephantIO\Client */ public function connect() { if (!$this->engine->connected()) { try { $this->logger->info('Connecting to server'); $this->engine->connect(); $this->logger->info('Connected to server'); } catch (SocketException $e) { $this->logger->error('Could not connect to server', ['exception' => $e]); throw $e; } } else { $this->logger->info('No connect attempt made, already connected'); } return $this; } /** * Disconnect from server. * * @return \ElephantIO\Client */ public function disconnect() { if ($this->engine->connected()) { $this->logger->info('Closing connection to server'); $this->engine->disconnect(); } return $this; } /** * Check if connected to server. * * @return bool */ public function isConnected() { return $this->engine->connected(); } /** * Set socket namespace. * * @param string $namespace The namespace * @return \ElephantIO\Engine\Packet|null */ public function of($namespace) { $this->logger->info('Setting namespace', ['namespace' => $namespace]); return $this->engine->of($namespace); } /** * Emit an event to server. * * @param string $event Event name * @param \ElephantIO\Engine\Argument|array<int|string, mixed> $args Event arguments * @param bool $ack Set to true to request acknowledgement * @return \ElephantIO\Engine\Packet|int|null Number of bytes written or acknowledged packet */ public function emit($event, $args, $ack = null) { $this->logger->info('Emitting a new event', ['event' => $event, 'args' => Util::toStr($args)]); return $this->engine->emit($event, $args, $ack); } /** * Acknowledge a packet. * * @param \ElephantIO\Engine\Packet $packet Packet to acknowledge * @param \ElephantIO\Engine\Argument|array<int|string, mixed> $args Acknowledgement data * @return int|null Number of bytes written */ public function ack($packet, $args) { if (null !== $packet->ack) { $this->logger->info(sprintf('Acknowledge a packet with id %s', $packet->ack), ['args' => Util::toStr($args)]); return $this->engine->ack($packet, $args); } return null; } /** * Wait an event arrived from server. To wait for any event from server, simply pass null * as event name. * * @param ?string $event Event name * @param float $timeout Timeout in seconds * @return \ElephantIO\Engine\Packet|null */ public function wait($event, $timeout = 0) { $this->logger->info('Waiting for event', ['event' => $event]); return $this->engine->wait($event, $timeout); } /** * Drain socket. * * @param float $timeout Timeout in seconds * @return \ElephantIO\Engine\Packet|null */ public function drain($timeout = 0) { return $this->engine->drain($timeout); } /** * Gets the engine used, for more advanced functions. * * @return \ElephantIO\Engine\EngineInterface */ public function getEngine() { return $this->engine; } /** * Create socket.io engine. * * @param int $version Client version * @param string $url Socket url * @param array<string, mixed> $options Engine options * @throws \InvalidArgumentException * @return \ElephantIO\Engine\SocketIO */ public static function engine($version, $url, $options = []) { switch ($version) { case static::CLIENT_0X: return new Version0X($url, $options); case static::CLIENT_1X: return new Version1X($url, $options); case static::CLIENT_2X: return new Version2X($url, $options); case static::CLIENT_3X: return new Version3X($url, $options); case static::CLIENT_4X: return new Version4X($url, $options); default: throw new InvalidArgumentException(sprintf('Unknown engine version %d!', $version)); } } /** * Create socket client. * * Available options: * - client: client version * - logger: a Psr\Log\LoggerInterface instance * * Options not listed above will be passed to engine. * * @param string $url Socket url * @param array<string, mixed> $options Engine options * @throws \InvalidArgumentException * @return \ElephantIO\Client */ public static function create($url, $options = []) { $version = isset($options['client']) ? $options['client'] : static::CLIENT_4X; $logger = isset($options['logger']) ? $options['logger'] : null; unset($options['client'], $options['logger']); return new self(static::engine($version, $url, $options), $logger); } }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/SequenceReader.php
src/SequenceReader.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO; /** * A sequence data reader. * * @author Toha <tohenk@yahoo.com> */ class SequenceReader { /** * @var ?string */ protected $data = null; /** * Constructor. * * @param string $data */ public function __construct($data) { $this->data = $data; } /** * Read a fixed size data or remaining data if size is null. * * @param ?int $size * @return string|null */ public function read($size = 1) { if (!$this->isEof()) { $result = null; if (null === $size) { $result = $this->data; $this->data = ''; } elseif ($this->data) { $result = mb_substr($this->data, 0, $size); $this->data = mb_substr($this->data, $size); } return $result; } return null; } /** * Read data up to delimiter. * * @param string $delimiter * @param string[] $noskips * @return null|string */ public function readUntil($delimiter = ',', $noskips = []) { if (!$this->isEof() && $this->data) { list($p, $d) = $this->getPos($this->data, $delimiter); if (is_int($p) && is_string($d)) { $result = mb_substr($this->data, 0, $p); // skip delimiter if (!in_array($d, $noskips)) { $p += mb_strlen($d); } $this->data = mb_substr($this->data, $p); return $result; } } return null; } /** * Read data up to delimiter within boundaries. * * @param string $delimiter * @param string[] $boundaries * @return null|string */ public function readWithin($delimiter = ',', $boundaries = []) { if (!$this->isEof() && $this->data) { list($p, $d) = $this->getPos($this->data, implode(array_merge([$delimiter], $boundaries))); if (is_int($p) && $d === $delimiter) { $result = mb_substr($this->data, 0, $p); $this->data = mb_substr($this->data, $p + mb_strlen($d)); return $result; } } return null; } /** * Get first position of delimiter. * * @param string $delimiter * @return false|int False if delimiter is not found otherwize the position found */ public function getDelimited($delimiter) { if ($this->data) { list($pos, ) = $this->getPos($this->data, $delimiter); } else { $pos = null; } return is_int($pos) ? $pos : false; } /** * Get first position of delimiters. * * @param ?string $data * @param ?string $delimiter * @return array<int, int|string|null> Index 0 indicate position found or false and index 1 indicate matched delimiter */ protected function getPos($data, $delimiter) { $pos = null; $delim = null; if ($data && $delimiter) { for ($i = 0; $i < mb_strlen($delimiter); $i++) { $d = mb_substr($delimiter, $i, 1); $p = mb_strpos($data, $d); if (is_int($p)) { if (null === $pos || $p < $pos) { $pos = (int) $p; $delim = $d; } } } } return [$pos, $delim]; } /** * Read unprocessed data without increase sequence position. * * @param int $size * @return string */ public function readData($size = 1) { return $this->data ? mb_substr($this->data, 0, $size) : ''; } /** * Get unprocessed data. * * @return string */ public function getData() { return $this->data ?? ''; } /** * Is EOF. * * @return bool */ public function isEof() { if (null === $this->data) { return true; } else { return mb_strlen($this->data) > 0 ? false : true; } } }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/Yeast.php
src/Yeast.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO; /** * Port of Yeast. * * @author Toha <tohenk@yahoo.com> * @see https://github.com/unshiftio/yeast */ class Yeast { /** * @var string */ protected $alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'; /** * @var integer */ protected $length = 64; /** * @var array<string, int> */ protected $map = []; /** * @var integer */ protected $seed = 0; /** * @var ?string */ protected $prev = null; /** * @var ?Yeast */ protected static $instance = null; /** * Constructor. */ public function __construct() { for ($i = 0; $i < $this->length; $i++) { $this->map[substr($this->alphabet, $i, 1)] = $i; } } /** * Return a string representing the specified number. * * @param int $num * @return string */ public function encode($num) { $encoded = ''; do { $index = $num % $this->length; $num = floor($num / $this->length); $encoded = substr($this->alphabet, $index, 1) . $encoded; } while ($num > 0); return $encoded; } /** * Return the integer value specified by the given string. * * @param string $str * @return int */ public function decode($str) { $decoded = 0; for ($i = 0; $i < strlen($str); $i++) { $decoded = $decoded * $this->length + $this->map[substr($str, $i, 1)]; } return $decoded; } /** * Yeast: A tiny growing id generator. * * @return string */ public function generate() { $now = new \DateTime(); $now = $now->getTimestamp() * 1000; $generated = $this->encode($now); if ($this->prev !== $generated) { $this->seed = 0; $this->prev = $generated; return $generated; } return $generated . '.' . $this->encode($this->seed++); } /** * @see Yeast::generate() * @return string */ public static function yeast() { if (null === self::$instance) { self::$instance = new self(); } return self::$instance->generate(); } }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/StringableInterface.php
src/StringableInterface.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO; /** * Stringable interface. * * @author Toha <tohenk@yahoo.com> */ interface StringableInterface { /** * Cast object to string. * * @return string */ public function __toString(); }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/SocketUrl.php
src/SocketUrl.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO; use ElephantIO\Exception\MalformedUrlException; /** * Represents a socket URL. * * @author Toha <tohenk@yahoo.com> */ class SocketUrl { /** * @var ?string */ protected $url = null; /** * @var array<string, mixed> */ protected $parsed = []; /** * @var string */ protected $sio = 'socket.io'; /** * Constructor. * * @param string $url The URL */ public function __construct($url) { $this->url = $url; $this->parsed = $this->parse($url); } /** * Parse an url into parts we may expect. * * @param string $url * @throws \ElephantIO\Exception\MalformedUrlException * @return array<string, mixed> information on the given URL */ protected function parse($url) { if (false === $parsed = parse_url($url)) { throw new MalformedUrlException($url); } $result = array_replace([ 'scheme' => 'http', 'host' => 'localhost', 'query' => [] ], $parsed); if (!isset($result['port'])) { $result['port'] = 'https' === $result['scheme'] ? 443 : 80; } if (!is_array($result['query'])) { $query = null; parse_str($result['query'], $query); $result['query'] = $query; } $result['secure'] = 'https' === $result['scheme']; return $result; } /** * Get socket.io path. If not set, default to socket.io. * * @return string */ public function getSioPath() { return $this->sio; } /** * Set socket.io path. * * @param string $sio socket.io path * @return \ElephantIO\SocketUrl */ public function setSioPath($sio) { $this->sio = $sio; return $this; } /** * Get raw URL. * * @return string|null */ public function getUrl() { return $this->url; } /** * Get host and port from parsed URL. * * @return string */ public function getHost() { return sprintf('%s:%d', $this->parsed['host'], $this->parsed['port']); } /** * Get address from parsed URL. * * @return string */ public function getAddress() { return sprintf('%s://%s', $this->parsed['secure'] ? 'ssl' : 'tcp', $this->getHost()); } /** * Get socket URI. * * @param string $path Path * @param array<string, mixed> $query Key-value query string * @return string */ public function getUri($path = null, $query = []) { $paths = []; if (isset($this->parsed['path']) && $root = trim((string) $this->parsed['path'], '/')) { $paths[] = $root; } $paths[] = $this->sio; if ($path = trim((string) $path, '/')) { $paths[] = $path; } $uri = sprintf('/%s/', implode('/', $paths)); $qs = array_merge($this->parsed['query'], $query); if (count($qs)) { $uri .= '?' . http_build_query($qs); } return $uri; } }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/Parser/Polling/Encoder.php
src/Parser/Polling/Encoder.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO\Parser\Polling; use ElephantIO\Engine\SocketIO; use ElephantIO\StringableInterface; /** * Encode the payload to send as HTTP payload. * * @author Toha <tohenk@yahoo.com> */ class Encoder implements StringableInterface { /** @var bool */ protected $binary = true; /** @var ?string */ protected $encoded = null; /** * Constructor. * * @param string $data Payload data * @param int $eio Engine IO version */ public function __construct($data, $eio) { switch ($eio) { case SocketIO::EIO_V4: break; case SocketIO::EIO_V3: case SocketIO::EIO_V2: $data = $this->binary ? $this->encodeBinaryPayload($data) : $this->encodePayload($data); break; case SocketIO::EIO_V1: break; } $this->encoded = $data; } /** * Encode payload as string. * * @param string $data Payload * @return string Enocded payload */ protected function encodePayload($data) { return sprintf('%d:%s', strlen($data), $data); } /** * Encode payload as binary string. * * @param string $data Payload * @return string Enocded payload */ protected function encodeBinaryPayload($data) { $len = array_map(function($n) { return pack('C', $n); }, str_split((string) strlen($data))); return "\x00" . implode($len) . "\xff" . $data; } public function __toString() { return (string) $this->encoded; } }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false
ElephantIO/elephant.io
https://github.com/ElephantIO/elephant.io/blob/9f38be3b002156b2f6cc9ade30e1b58e7fea49cf/src/Parser/Polling/Decoder.php
src/Parser/Polling/Decoder.php
<?php /** * This file is part of the Elephant.io package * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. * * @copyright Wisembly * @license http://www.opensource.org/licenses/MIT-License MIT License */ namespace ElephantIO\Parser\Polling; use ArrayObject; use ElephantIO\Engine\SocketIO; use ElephantIO\SequenceReader; use ElephantIO\StringableInterface; use RuntimeException; /** * Decode the payload from HTTP response. * * @template TKey of array-key * @template TValue * @extends ArrayObject<TKey, TValue> * @author Toha <tohenk@yahoo.com> */ class Decoder extends ArrayObject implements StringableInterface { public const EIO_V1_SEPARATOR = "\u{fffd}"; public const EIO_V4_SEPARATOR = "\x1e"; /** * Constructor. * * @param string $data Payload data * @param int $eio Engine IO version * @param bool $binary True if data is using binary encoding */ public function __construct($data, $eio, $binary = null) { $lines = []; $checksum = null; $seq = new SequenceReader($data); while (!$seq->isEof()) { $len = null; $skip = null; switch ($eio) { case SocketIO::EIO_V4: if (false !== ($xlen = $seq->getDelimited(static::EIO_V4_SEPARATOR))) { $len = $xlen; $skip = mb_strlen(static::EIO_V4_SEPARATOR); } elseif ($data = $seq->getData()) { $len = mb_strlen($data); } break; case SocketIO::EIO_V3: case SocketIO::EIO_V2: if ($binary) { $signature = $seq->read(); if (in_array($signature, ["\x00", "\x01"])) { if ($sizes = $seq->readUntil("\xff")) { $len = 0; $n = mb_strlen($sizes) - 1; for ($i = 0; $i <= $n; $i++) { $len += ord($sizes[$i]) * (int) pow(10, $n - $i); } } } else { throw new RuntimeException('Unsupported encoding detected!'); } } else { $len = (int) $seq->readUntil(':'); } break; case SocketIO::EIO_V1: if (false !== ($xlen = $seq->getDelimited(static::EIO_V1_SEPARATOR))) { $len = $xlen; $skip = mb_strlen(static::EIO_V1_SEPARATOR); } elseif ($data = $seq->getData()) { $len = mb_strlen($data); } break; } if (null === $len) { throw new RuntimeException('Data delimiter not found!'); } if ($line = $seq->read($len)) { if ($eio === SocketIO::EIO_V1 && $skip) { if ((string) (int) $line === $line) { $checksum = (int) $line; $line = null; } else { if ($len !== $checksum) { throw new RuntimeException(sprintf('Invalid size checksum, got %d while expecting %d!', $len, $checksum)); } $checksum = null; } } if ($line) { /** @var TValue $line */ $lines[] = $line; } } if ($skip) { $seq->read($skip); } } parent::__construct($lines); } public function __toString() { return implode('', (array) $this); } }
php
MIT
9f38be3b002156b2f6cc9ade30e1b58e7fea49cf
2026-01-05T05:13:18.519422Z
false