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

Customer Bundle Laravel Package

diego-campos-fivebyfive/customer-bundle

View on GitHub
Deep Wiki
Context7

KolinaCustomerBundle

Simplified management clients, extensible and integrated with FOSUserBundle

1. Installation and Configuration

Caution: This package is under development!

1.1 Download KolinaCustomerBundle using composer

$ composer require kolinalabs/customer-bundle

After downloading the package

1.2 Enable the bundle

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Kolina\CustomerBundle\KolinaCustomerBundle(),
        // ...
    );
}

1.3 Create your customer class Tested with xml mapping

<?php
// src/AppBundle/Entity/Customer.php
namespace AppBundle\Entity;

use Kolina\CustomerBundle\Entity\Customer as AbstractCustomer;

/**
 * Customer
 */
class Customer extends AbstractCustomer
{
    // Your custom properties and methods
}

1.4 Configure app/config.yml

# app/config.yml
kolina_customer:
    entity: AppBundle\Entity\Customer

2. CRUD

2.1 Access the service manager in the controller

/**
 * @return \Kolina\CustomerBundle\Entity\CustomerManager
 */
private function getCustomerManager()
{
    return $this->get('kolina_customer.manager');
}

2.2 Example usage

// Create Customer Object
...
$manager = $this->getCustomerManager();
$customer = $manager->create();

$customer
        ->setFirstname('Foo')
        ->setLastname('Bar')
        //... other setter methods - 
        //... see \Kolina\CustomerBundle\Entity\CustomerInterface
        ;

$manager->save($customer);
...
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware