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 |
|---|---|---|---|---|---|---|---|---|
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.2.1/lang/chinese-as.php | 8.2.1/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.2.1/admin/lang/chinese-as.php | 8.2.1/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS8.2.1 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['recordsf... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/7.9.2/lang/chinese-as.php | 7.9.2/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/7.9.2/admin/lang/chinese-as.php | 7.9.2/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS7.9.2 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['recordsf... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.0.4/lang/chinese-as.php | 8.0.4/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.0.4/admin/lang/chinese-as.php | 8.0.4/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS8.0.2 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['recordsf... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.9.0/lang/chinese-as.php | 8.9.0/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.9.0/admin/lang/chinese-as.php | 8.9.0/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS 8.9.0 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['records... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.7.3/lang/chinese-as.php | 8.7.3/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.7.3/admin/lang/chinese-as.php | 8.7.3/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS 8.7.3 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['records... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.4.1/lang/chinese-as.php | 8.4.1/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.4.1/admin/lang/chinese-as.php | 8.4.1/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS8.4.1 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['recordsf... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.11.2/lang/overrides/chinese.php | 8.11.2/lang/overrides/chinese.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.11.2/admin/lang/chinese.php | 8.11.2/admin/lang/chinese.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_001)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/7.10.2/lang/chinese-as.php | 7.10.2/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/7.10.2/admin/lang/chinese-as.php | 7.10.2/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS7.10.2 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['records... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.12.1/lang/overrides/chinese.php | 8.12.1/lang/overrides/chinese.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.12.1/admin/lang/chinese.php | 8.12.1/admin/lang/chinese.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_001)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.5.2/lang/chinese-as.php | 8.5.2/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.5.2/admin/lang/chinese-as.php | 8.5.2/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS8.5.0 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['recordsf... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.1.3/lang/chinese-as.php | 8.1.3/lang/chinese-as.php | <?php
/**
* WHMCS Language File
* Simplified Chinese (zh_CN)
*
* Please Note: These language files are overwritten during software updates
* and therefore editing of these files directly is not advised. Instead we
* recommend that you use overrides to customise the text displayed in a way
* which will be safely ... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
Rodots/WHMCS-zh-CN | https://github.com/Rodots/WHMCS-zh-CN/blob/8be602ec246295558710bd30c82bf2db6d146502/8.1.3/admin/lang/chinese-as.php | 8.1.3/admin/lang/chinese-as.php | <?php
// @by Rodots 傲世 WHMCS8.1.3 WHMCS-zh-CN
if (!defined("WHMCS")) die("This file cannot be accessed directly");
$_ADMINLANG['locale'] = "zh_CN";
# Global
$_ADMINLANG['global']['hometitle'] = "仪表盘";
$_ADMINLANG['global']['searchfilter'] = "搜索";
$_ADMINLANG['global']['search'] = "搜索";
$_ADMINLANG['global']['recordsf... | php | MIT | 8be602ec246295558710bd30c82bf2db6d146502 | 2026-01-05T02:36:16.965422Z | true |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/app/Http/Requests/PasteRequest.php | app/Http/Requests/PasteRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class PasteRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/app/Http/Controllers/Controller.php | app/Http/Controllers/Controller.php | <?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
abstract class Controller extends BaseController
{
use AuthorizesRequests, ValidatesRequests;
}
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/app/Http/Controllers/PastesController.php | app/Http/Controllers/PastesController.php | <?php
namespace App\Http\Controllers;
use App\Http\Requests\PasteRequest;
use App\Models\Paste;
use Illuminate\Http\RedirectResponse;
use Illuminate\View\View;
class PastesController extends Controller
{
public function post(PasteRequest $request): RedirectResponse
{
$paste = Paste::fromRequest($requ... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/app/Http/Middleware/DisableFloc.php | app/Http/Middleware/DisableFloc.php | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class DisableFloc
{
/**
* Handle an incoming request.
*/
public function handle(Request $request, Closure $next): Response
{
$response = $next($request);
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/app/Models/User.php | app/Models/User.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/app/Models/Paste.php | app/Models/Paste.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Ramsey\Uuid\Uuid;
class Paste extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
prot... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/app/Providers/AppServiceProvider.php | app/Providers/AppServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* The path to your application's "home" route.
*
* Typical... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/bootstrap/app.php | bootstrap/app.php | <?php
use App\Providers\AppServiceProvider;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
return Application::configure(basePath: dirname(__DIR__))
->withProviders()
->withRouting(
web: __DIR__.'/../routes... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/bootstrap/providers.php | bootstrap/providers.php | <?php
return [
App\Providers\AppServiceProvider::class,
];
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
protected function setUp(): void
{
parent::setUp();
$this->withoutVite();
}
}
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/tests/Feature/LimitCodeLengthTest.php | tests/Feature/LimitCodeLengthTest.php | <?php
namespace Tests\Feature;
use Tests\TestCase;
class LimitCodeLengthTest extends TestCase
{
/** @test */
public function it_disallows_long_code_posts(): void
{
$code = file_get_contents(__DIR__.'/../artifacts/long_text.txt');
$this->post('/', compact('code'))
->assertSess... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/tests/Feature/PastebinTest.php | tests/Feature/PastebinTest.php | <?php
namespace Tests\Feature;
use App\Models\Paste;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Tests\TestCase;
class PastebinTest extends TestCase
{
use DatabaseMigrations;
/** @test */
public function it_shows_the_pastebin(): void
{
$this->get('/')
->assertStatus... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/routes/web.php | routes/web.php | <?php
use App\Http\Controllers\PastesController;
use Illuminate\Support\Facades\Route;
Route::view('/', 'create')->name('home');
Route::post('/', [PastesController::class, 'post']);
Route::get('{paste}', [PastesController::class, 'show'])->name('show');
Route::get('{paste}/raw', [PastesController::class, 'raw'])->nam... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/routes/api.php | routes/api.php | <?php
//
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/routes/console.php | routes/console.php | <?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote')->hourly();
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/public/index.php | public/index.php | <?php
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/aut... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/config/logging.php | config/logging.php | <?php
return [
'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
'channels' => [
'flare' => [
'driver' => 'flare',
],
],
];
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/config/sentry.php | config/sentry.php | <?php
return [
// @see https://docs.sentry.io/product/sentry-basics/dsn-explainer/
'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')),
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
'... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/config/database.php | config/database.php | <?php
return [
'migrations' => [
'table' => 'migrations',
'update_date_on_publish' => false, // disable to preserve original behavior for existing applications
],
];
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/config/services.php | config/services.php | <?php
return [
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
'scheme' => 'https',
],
];
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/config/mail.php | config/mail.php | <?php
return [
'mailers' => [
'mailgun' => [
'transport' => 'mailgun',
],
],
];
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/database/factories/UserFactory.php | database/factories/UserFactory.php | <?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<st... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/database/factories/PasteFactory.php | database/factories/PasteFactory.php | <?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Ramsey\Uuid\Uuid;
class PasteFactory extends Factory
{
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'hash' => Uuid::uuid4()->toString(),
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/database/migrations/2017_02_05_115413_create_pastes_table.php | database/migrations/2017_02_05_115413_create_pastes_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('pastes', function (Blueprint $table) {
$table->increments('id');
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/database/migrations/2018_05_22_182301_cleanup_pastes_table.php | database/migrations/2018_05_22_182301_cleanup_pastes_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('pastes', function (Blueprint $table) {
$table->dropColumn(['author_id', 'ip'... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/database/migrations/2017_08_26_200315_unique_paste_hash.php | database/migrations/2017_08_26_200315_unique_paste_hash.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('pastes', function (Blueprint $table) {
$table->unique('hash');
});
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/database/seeders/DatabaseSeeder.php | database/seeders/DatabaseSeeder.php | <?php
namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// \App\Models\User::factory(10)->create();
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/raw.blade.php | resources/views/raw.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title>Pastebin | Laravel.io</title>
@include('layouts.favicons')
@include('la... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/edit.blade.php | resources/views/edit.blade.php | @extends('layouts.app')
@section('content')
<form action="{{ route('edit', $paste) }}" method="POST">
@csrf
<div x-data="{ isOpen: false }" class="h-screen flex overflow-hidden">
<x-main>
@include('_editor')
</x-main>
<x-nav>
<x-... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/create.blade.php | resources/views/create.blade.php | @extends('layouts.app')
@section('content')
<form action="{{ route('home') }}" method="POST">
@csrf
<div x-data="{ isOpen: false }" class="h-screen flex overflow-hidden">
<x-main>
@include('_editor')
</x-main>
<x-nav>
<x-nav-item... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/show.blade.php | resources/views/show.blade.php | @extends('layouts.app')
@section('content')
<div x-data="{ isOpen: false }" class="h-screen flex overflow-hidden">
<x-main>
<pre
id="code"
class="h-full font-mono text-sm prettyprint linenums selectable" data-line-numbers="true"
><code>{{ $paste->code... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/_editor.blade.php | resources/views/_editor.blade.php | <div class="h-full font-mono text-sm">
<textarea
name="code" class="dark:bg-dark text-gray-900 dark:text-white w-full h-full resize-none outline-none"
placeholder="<?php echo 'Share your snippet here!';"
>{{ optional($paste ?? null)->code }}</textarea>
</div>
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/components/nav.blade.php | resources/views/components/nav.blade.php | <!-- Off-canvas menu for mobile, show/hide based on off-canvas menu state. -->
<div class="print:hidden" :class="{'hidden': !isOpen }">
<div class="fixed inset-0 flex z-40">
<!--
Off-canvas menu overlay, show/hide based on off-canvas menu state.
-->
<div class="fixed inset-0">
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/components/sidebar.blade.php | resources/views/components/sidebar.blade.php | <div class="flex items-center shrink-0 px-2">
<a href="https://laravel.io">
<img class="w-full h-16 dark:hidden" src="{{ asset('images/laravelio.svg') }}" alt="Laravel.io Logo" />
<img class="w-full h-16 hidden dark:inline" src="{{ asset('images/laravelio-white.svg') }}" alt="Laravel.io Logo" />
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/components/nav-item.blade.php | resources/views/components/nav-item.blade.php | @isset($link)
<a
href="{{ $link }}"
@isset($blank) target="_blank" @endisset
{{ $attributes->merge(['class' => 'inline-flex items-center w-full px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-gray-700 dark:text-white bg-gray-200 dark:bg-gray-500 hover:bg-gra... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/components/main.blade.php | resources/views/components/main.blade.php | <div class="flex flex-col min-w-0 flex-1 overflow-hidden">
<div class="lg:hidden print:hidden">
<div class="flex items-center justify-between bg-gray-50 dark:bg-gray-700 border-b border-gray-200 dark:border-gray-900 px-4 py-1.5">
<div>
<a href="{{ route('home') }}">
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/layouts/favicons.blade.php | resources/views/layouts/favicons.blade.php | <link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/layouts/fathom.blade.php | resources/views/layouts/fathom.blade.php | @production
<!-- Fathom - beautiful, simple website analytics -->
<script src="https://cdn.usefathom.com/script.js" data-site="UPHUDXHV" defer></script>
<!-- / Fathom -->
@endproduction
| php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
laravelio/paste.laravel.io | https://github.com/laravelio/paste.laravel.io/blob/7e1e492c903556757037d6dc2f34dfdef4244e10/resources/views/layouts/app.blade.php | resources/views/layouts/app.blade.php | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
@unless (request()->is('/'))
{{-- We don't want to ... | php | MIT | 7e1e492c903556757037d6dc2f34dfdef4244e10 | 2026-01-05T02:36:25.708437Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Kernel.php | www/src/Kernel.php | <?php
namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
}
| php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/ImageController.php | www/src/Controller/ImageController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\C... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/LeaderboardController.php | www/src/Controller/LeaderboardController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\UserFunctions;
class LeaderboardController extends AbstractCo... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/UserController.php | www/src/Controller/UserController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpClient\HttpClient;
use Symfony\Contracts\HttpClient\E... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/CommentsController.php | www/src/Controller/CommentsController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
class CommentsController extends AbstractController
{
#... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/SearchController.php | www/src/Controller/SearchController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\SearchFunctions;
use Doctrine\DBAL\DriverManager;
use Doctrin... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/BenchController.php | www/src/Controller/BenchController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\AcceptHeader;
use App\Service\BenchFuncti... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/CameraController.php | www/src/Controller/CameraController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\CameraFunctions;
class CameraController extends AbstractContr... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/LocationController.php | www/src/Controller/LocationController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\LocationFunctions;
use App\Service\BenchFunctions;
use App\Ser... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/EditController.php | www/src/Controller/EditController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\MediaFunctions;
use App\Service\BenchFunctions;
use App\Servic... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/FeedController.php | www/src/Controller/FeedController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\SearchFunctions;
class FeedController extends AbstractControl... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/OembedController.php | www/src/Controller/OembedController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use App\Service\BenchFuncti... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/BaseController.php | www/src/Controller/BaseController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class BaseController extends AbstractController
{
#[Route('/', name: 'base')]
public function base(): Response {
return ... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/UploadController.php | www/src/Controller/UploadController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\MediaFunctions;
use App\Service\UserFunctions;
use App\Service... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/AddController.php | www/src/Controller/AddController.php | <?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use App\Service\TagsFunctions;
use App\Service\UserFunctions;
use Doctrine\DB... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Controller/ApiController.php | www/src/Controller/ApiController.php | <?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\Cache... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Twig/AppExtension.php | www/src/Twig/AppExtension.php | <?php
// src/Twig/AppExtension.php
namespace App\Twig;
use Symfony\Contracts\Cache\ItemInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
class AppExtension extends Abstrac... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/CameraFunctions.php | www/src/Service/CameraFunctions.php | <?php
// src/Service/CameraFunctions.php
namespace App\Service;
use Symfony\Contracts\Cache\ItemInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
use Doctrine\DBAL\Connection;
class CameraFunctions
{
public function getMakes() {
... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/SearchFunctions.php | www/src/Service/SearchFunctions.php | <?php
// src/Service/SearchFunctions.php
namespace App\Service;
use App\Service\MediaFunctions;
use App\Service\TagsFunctions;
use Symfony\Contracts\Cache\ItemInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
use Doctrine\DBAL\Connec... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/UserFunctions.php | www/src/Service/UserFunctions.php | <?php
// src/Service/UserFunctions.php
namespace App\Service;
use Symfony\Contracts\Cache\ItemInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use App\Service\MediaFunctions;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
class UserFunctions
{
public function getUserDetails( $... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/BenchFunctions.php | www/src/Service/BenchFunctions.php | <?php
// src/Service/BenchFunctions.php
namespace App\Service;
use App\Service\MediaFunctions;
use App\Service\TagsFunctions;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
class BenchFunctions
{
public function getRandomBenchID(): int {
$dsnParser = new DsnParser();
$connectionParams = $ds... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/TagsFunctions.php | www/src/Service/TagsFunctions.php | <?php
// src/Service/TagsFunctions.php
namespace App\Service;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
use Doctrine\DBAL\Connection;
class TagsFunctions
{
public function getTagsNames() {
$dsnParser = new DsnParser();
$connectionParams = $dsnParser->parse( $_ENV['DATABASE_URL'] );
$c... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/UploadFunctions.php | www/src/Service/UploadFunctions.php | <?php
// src/Service/UploadFunctions.php
namespace App\Service;
use App\Service\LocationFunctions;
use App\Service\MediaFunctions;
use App\Service\TagsFunctions;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
class UploadFunctions
{
public function addBench( $inscription, $latitude, $longitude,... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/LocationFunctions.php | www/src/Service/LocationFunctions.php | <?php
// src/Service/LocationFunctions.php
namespace App\Service;
use Symfony\Contracts\Cache\ItemInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
class LocationFunctions
{
public function getBoundingBox( string $address_string ): ... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/src/Service/MediaFunctions.php | www/src/Service/MediaFunctions.php | <?php
// src/Service/MediaFunctions.php
namespace App\Service;
class MediaFunctions
{
public function getScaledHeight( $originalWidth, $originalHeight, $newWidth ): int {
$ratio = $newWidth / $originalWidth;
$newHeight = round( $originalHeight * $ratio );
return $newHeight;
}
public function getLicenseIcon(... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/index.php | www/public/index.php | <?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
| php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/index.php | www/public/commentics/index.php | <?php
if (file_exists('install/')) {
header('Location: ' . 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/install/');
die();
} else {
header('HTTP/1.0 403 Forbidden');
echo '<!DOCTYPE html>';
echo '<html>';
echo '<head>';
echo '<title>403 Forbidden</title>';
echo... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/iframe.php | www/public/commentics/iframe.php | <?php
session_name('commentics-iframe-session');
// Default session parameters
$session_parameters = array(
'cookie_httponly' => 1,
'use_only_cookies' => 1,
'use_trans_sid' => 0,
'gc_maxlifetime' => 1440,
'cookie_lifetime' => 0,
'cookie_path' => '/',
'cookie_secure' => 1
);
... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/startup.php | www/public/commentics/system/startup.php | <?php
define('CMTX_START_TIME', microtime(true)); // record start time
error_reporting(-1); // report every possible error
ini_set('error_log', CMTX_DIR_LOGS . 'errors.log'); // set log path
if (defined('CMTX_INSTALL')) { // if it's the installer
ini_set('log_errors', 0); // don't log errors
ini_set('display... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/home.php | www/public/commentics/system/library/home.php | <?php
namespace Commentics;
class Home
{
private $db;
private $email;
private $log;
private $setting;
private $user;
public function __construct($registry)
{
$this->db = $registry->get('db');
$this->email = $registry->get('email');
$this->log = $registry-... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/site.php | www/public/commentics/system/library/site.php | <?php
namespace Commentics;
class Site
{
private $db;
private $page;
public function __construct($registry)
{
$this->db = $registry->get('db');
$this->page = $registry->get('page');
}
public function siteExists($id)
{
if ($this->db->numRows($this->db->query("SELE... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/encryption.php | www/public/commentics/system/library/encryption.php | <?php
namespace Commentics;
class Encryption
{
private $setting;
public function __construct($registry)
{
$this->setting = $registry->get('setting');
}
public function encrypt($value)
{
$key = hash('sha256', $this->setting->get('encryption_key'), true);
$iv = openssl_... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/page.php | www/public/commentics/system/library/page.php | <?php
namespace Commentics;
class Page
{
private $db;
private $request;
private $security;
private $session;
private $url;
private $id = 0;
private $identifier = '';
private $reference = '';
private $page_url = '';
private $form_enabled = true;
private $iframe = false;
p... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/session.php | www/public/commentics/system/library/session.php | <?php
namespace Commentics;
class Session
{
public $data = array();
public function __construct()
{
$this->data = &$_SESSION;
}
public function start()
{
session_start();
}
public function getId()
{
return session_id();
}
public function getName()... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/comment.php | www/public/commentics/system/library/comment.php | <?php
namespace Commentics;
class Comment
{
private $cache;
private $db;
private $session;
private $setting;
private $parents = array();
private $replies = array();
public function __construct($registry)
{
$this->cache = $registry->get('cache');
$this->db = $regi... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/cache.php | www/public/commentics/system/library/cache.php | <?php
namespace Commentics;
class Cache
{
private $db;
private $setting;
private $driver = '';
public function __construct($registry)
{
$this->db = $registry->get('db');
$this->setting = $registry->get('setting');
if (!$this->db->isConnected() || !$this->db->isInstall... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/variable.php | www/public/commentics/system/library/variable.php | <?php
namespace Commentics;
class Variable
{
/* Uppercases the first character of each word in the string */
public function fixCase($value)
{
if (function_exists('mb_convert_case') && is_callable('mb_convert_case')) {
if (version_compare(PHP_VERSION, '7.3.0', '>=')) {
$... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/database.php | www/public/commentics/system/library/database.php | <?php
namespace Commentics;
class Db
{
private $driver = '';
public $query_count = 0;
public $query_time = 0;
public $query_error;
public $query_last;
public $connected = false;
public $connect_error;
public $connect_errno;
public $installed = false;
public function connect($ho... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
openbenches/openbenches.org | https://github.com/openbenches/openbenches.org/blob/548728c8f59e5dfca2dda6efd1612e4fa31205b9/www/public/commentics/system/library/email.php | www/public/commentics/system/library/email.php | <?php
namespace Commentics;
class Email
{
private $db;
private $log;
private $setting;
public function __construct($registry)
{
$this->db = $registry->get('db');
$this->log = $registry->get('log');
$this->setting = $registry->get('setting');
}
public funct... | php | MIT | 548728c8f59e5dfca2dda6efd1612e4fa31205b9 | 2026-01-05T02:33:43.558014Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.