PHPackages                             bsidlify/bsidlify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. bsidlify/bsidlify

ActiveProject[Templating &amp; Views](/categories/templating)

bsidlify/bsidlify
=================

The skeleton application for the Bsidlify framework.

00PHP

Since Jun 12Pushed 11mo agoCompare

[ Source](https://github.com/bsidlify4u/bsidlify)[ Packagist](https://packagist.org/packages/bsidlify/bsidlify)[ RSS](/packages/bsidlify-bsidlify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bsidlify Framework
==================

[](#bsidlify-framework)

 [![Bsidlify Logo](https://camo.githubusercontent.com/2c1c841a5026b6dde40307132cf103b513a3530376df8619df69d96b35b25b0e/68747470733a2f2f7062732e7477696d672e636f6d2f70726f66696c655f696d616765732f313931393338343538383637393333313834302f73684d77436b2d455f343030783430302e6a7067)](https://camo.githubusercontent.com/2c1c841a5026b6dde40307132cf103b513a3530376df8619df69d96b35b25b0e/68747470733a2f2f7062732e7477696d672e636f6d2f70726f66696c655f696d616765732f313931393338343538383637393333313834302f73684d77436b2d455f343030783430302e6a7067)

About Bsidlify
--------------

[](#about-bsidlify)

Bsidlify is an elegant, powerful PHP framework designed for web artisans who demand both flexibility and performance. Built on top of modern PHP principles and best practices, Bsidlify empowers developers to create robust, scalable web applications without sacrificing development speed or code quality.

### Key Features

[](#key-features)

- **Multi-Template Engine Support**: Seamlessly switch between Blade, Twig, and Plates template engines
- **Performance-Optimized Core**: Intelligent caching mechanisms, reduced overhead, and optimized database queries
- **Developer-Friendly CLI**: Enhanced command-line interface with `php bsidlify` commands
- **Modern Architecture**: Built on PHP 8.2+ with a focus on type safety and modern programming patterns
- **Flexible Routing System**: Define elegant routes with middleware, model binding, and advanced pattern matching
- **Smart Configuration**: Environment-based configuration with sensible defaults and easy customization
- **Comprehensive Testing Support**: First-class testing tools and helpers for TDD workflows

System Requirements
-------------------

[](#system-requirements)

- PHP &gt;= 8.2
- BCMath PHP Extension
- Ctype PHP Extension
- Fileinfo PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension

Installation
------------

[](#installation)

### Via Composer Create-Project

[](#via-composer-create-project)

```
composer create-project bsidlify/bsidlify my-project
cd my-project
php bsidlify key:generate
```

### Clone Repository

[](#clone-repository)

```
git clone https://github.com/bsidlify4u/bsidlify.git my-project
cd my-project
composer install
cp .env.example .env
php bsidlify key:generate
```

Quick Start Guide
-----------------

[](#quick-start-guide)

### Start Development Server

[](#start-development-server)

```
php bsidlify serve
```

### Run Development Environment with All Services

[](#run-development-environment-with-all-services)

```
composer run dev
```

This starts concurrent processes:

- PHP development server
- Queue worker
- Log monitor
- Vite development server

Configuration
-------------

[](#configuration)

Bsidlify follows the convention-over-configuration principle, with sensible defaults and easy customization through environment variables and configuration files.

### Key Configuration Files

[](#key-configuration-files)

- `.env`: Environment-specific variables and settings
- `config/app.php`: Application configuration
- `config/view.php`: Template engine configuration
- `config/database.php`: Database connections and settings
- `config/cache.php`: Cache store configurations
- `config/queue.php`: Queue driver settings

Template Engine System
----------------------

[](#template-engine-system)

Bsidlify's unique multi-template engine system allows developers to choose their preferred syntax or use different engines for different parts of their application.

### Configuration

[](#configuration-1)

Configure template engines in `config/view.php`:

```
// Select the default engine
'default_engine' => env('VIEW_ENGINE', 'blade'),

// Configure each engine
'engines' => [
    'blade' => [
        'extension' => 'blade.php',
    ],
    'twig' => [
        'extension' => 'twig',
        'options' => [
            'cache' => storage_path('framework/twig'),
            'debug' => env('APP_DEBUG', false),
            'auto_reload' => env('APP_DEBUG', false),
        ],
    ],
    'plates' => [
        'extension' => 'plate.php',
        'options' => [
            'folder_namespace' => 'views',
            'directory' => resource_path('views'),
        ],
    ],
],
```

### Using Blade Templates

[](#using-blade-templates)

```
// In controller
return view('example.blade-template', $data);

// In template
{{ $title }}
@if(condition)
    Conditional content
@endif
```

### Using Twig Templates

[](#using-twig-templates)

```
// In controller
use App\Facades\Template;
return response(Template::driver('twig')->render('example.twig-template', $data));

// In template
{{ title }}
{% if condition %}
    Conditional content
{% endif %}
```

### Using Plates Templates

[](#using-plates-templates)

```
// In controller
use App\Facades\Template;
return response(Template::driver('plates')->render('example.plate-template', $data));

// In template

    Conditional content

```

### Auto-Detection of Template Engines

[](#auto-detection-of-template-engines)

```
// Automatically selects engine based on file extension
use App\Facades\Template;
return response(Template::render('example.view-name', $data));
```

CLI Commands
------------

[](#cli-commands)

Bsidlify extends Laravel's Artisan with enhanced commands through the `php bsidlify` command-line tool.

```
# List all available commands
php bsidlify list

# Create components
php bsidlify make:controller UserController
php bsidlify make:model User
php bsidlify make:migration create_users_table

# Database operations
php bsidlify migrate
php bsidlify db:seed
php bsidlify db:wipe

# Application maintenance
php bsidlify cache:clear
php bsidlify config:cache
php bsidlify route:cache
php bsidlify view:clear

# Development server
php bsidlify serve
```

Directory Structure
-------------------

[](#directory-structure)

```
app/                  # Application code
├── Console/          # Console commands and kernel
├── Exceptions/       # Exception handlers
├── Facades/          # Facade implementations
├── Http/             # Controllers, middleware, and requests
├── Models/           # Eloquent models
├── Providers/        # Service providers
├── Template/         # Template engine implementations
bootstrap/            # Framework bootstrap files
config/               # Configuration files
database/             # Migrations and seeders
├── factories/        # Model factories
├── migrations/       # Database migrations
├── seeders/          # Database seeders
public/               # Publicly accessible files
resources/            # Views, assets, language files
├── css/              # CSS source files
├── js/               # JavaScript source files
├── lang/             # Language files
├── views/            # Templates (Blade, Twig, Plates)
routes/               # Route definitions
├── api.php           # API routes
├── web.php           # Web routes
├── console.php       # Console commands
storage/              # Application storage
├── app/              # Application-generated files
├── framework/        # Framework-generated files
├── logs/             # Log files
tests/                # Test cases

```

Database Management
-------------------

[](#database-management)

Bsidlify provides robust tools for database management, migrations, and seeding.

### Migrations

[](#migrations)

```
# Create a migration
php bsidlify make:migration create_posts_table

# Run migrations
php bsidlify migrate

# Rollback migrations
php bsidlify migrate:rollback

# Reset and re-run all migrations
php bsidlify migrate:fresh
```

### Models and Eloquent ORM

[](#models-and-eloquent-orm)

```
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    protected $fillable = [
        'title', 'content', 'user_id',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function comments()
    {
        return $this->hasMany(Comment::class);
    }
}
```

Testing
-------

[](#testing)

Bsidlify includes comprehensive testing tools powered by PHPUnit.

```
# Run all tests
php bsidlify test

# Run specific test file
php bsidlify test --filter=UserTest

# Generate test coverage report
php bsidlify test --coverage
```

Security
--------

[](#security)

Bsidlify takes security seriously, with built-in protection against common web vulnerabilities:

- CSRF protection
- XSS prevention
- SQL injection prevention
- Authentication and authorization systems
- Encryption and hashing utilities
- Secure password handling

Performance Optimization
------------------------

[](#performance-optimization)

Bsidlify includes several performance optimization features:

- Route caching
- Configuration caching
- View caching
- Query caching
- Optimized autoloader
- Just-in-time compilation for Blade templates

Contributing
------------

[](#contributing)

We welcome contributions to the Bsidlify framework! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Code of Conduct
---------------

[](#code-of-conduct)

In order to ensure that the Bsidlify community is welcoming to all, please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md).

License
-------

[](#license)

The Bsidlify framework is open-source software licensed under the [MIT license](https://github.com/bsidlify4u/bsidlify?tab=MIT-1-ov-file).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c7483e953de3964be7ba9b1fb250759fa0898664b3fe4414a57bbe9441c1b78?d=identicon)[bsidlify](/maintainers/bsidlify)

---

Top Contributors

[![gentle-xymd](https://avatars.githubusercontent.com/u/132976554?v=4)](https://github.com/gentle-xymd "gentle-xymd (7 commits)")

---

Tags

bladefull-stackphpplatetwigvite

### Embed Badge

![Health badge](/badges/bsidlify-bsidlify/health.svg)

```
[![Health](https://phpackages.com/badges/bsidlify-bsidlify/health.svg)](https://phpackages.com/packages/bsidlify-bsidlify)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
