Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bdf Prime Bundle Laravel Package

b2pweb/bdf-prime-bundle

View on GitHub
Deep Wiki
Context7

build Scrutinizer Code Quality Packagist Version Total Downloads

Installation

1 Download the Bundle

Download the latest stable version of this bundle with composer:

composer require b2pweb/bdf-prime-bundle

2 Enable the Bundle

Adding the following line in the config/bundles.php file of your project:

<?php
// config/bundles.php

return [
    // ...
    Bdf\PrimeBundle\PrimeBundle::class => ['all' => true],
    Bdf\PrimeBundle\TestingPrimeBundle::class => ['test' => true],
    // ...
];

3 Set environment

Add your dsn on the.env file

DATABASE_URL=mysql://root@127.0.0.1/dbname?serverVersion=5.7

Add your dsn on the.env.test file

DATABASE_URL=sqlite::memory:

4 Add configuration

Add a default config file to ./config/packages/prime.yaml

prime:
    activerecord: true
    hydrators: '%kernel.cache_dir%/prime/hydrators/loader.php'
    default_connection: 'default'
    connections:
        default: '%env(resolve:DATABASE_URL)%'
    
    migration:
        connection: 'default'
        path: '%kernel.project_dir%/src/Migration'

Enable caching for production

prime:
  cache:
    query:
      service: 'Bdf\Prime\Cache\ArrayCache'
    metadata:
      pool: 'cache.app'

Add a test file to ./config/packages/test/prime.yaml

prime:
  logging: false
  cache:
    query:
      pool: null
      service: null

    metadata:
      pool: null
      service: null

See the available values of the configuration

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity