2017 © Pedro Peláez
 

symfony-bundle core-bundle

everything to quickstart a webpage

image

c33s/core-bundle

everything to quickstart a webpage

  • Friday, September 8, 2017
  • by c33s
  • Repository
  • 3 Watchers
  • 3 Stars
  • 815 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 28 Versions
  • 0 % Grown

The README.md

CoreBundle

everything to quickstart a webpage, (*1)

![Build Status] ![SemVer] ![Latest Stable Version] ![Latest Unstable Version] ![License] ![SensioLabsInsight] !Project Status, (*2)

Because json is not a really handy format to read and it also lacks in commenting support, this Bundle supports the composer.yml format. composer-yaml.phar is used, to convert from yml to json. In this manual all composer code snippets are in yml format. Create a script file, which call the yml to json converter before running composer. Make sure you have both composer and composer-yaml commands at your fingertips., (*3)

Short Quick Manual

You can perform the whole installation by executing the following commands inside your empty project directory:, (*4)

# Get sample composer file directly from github
wget https://raw.githubusercontent.com/c33s/CoreBundle/master/Resources/files/composer-example.yml -O composer.yml --no-check-certificate
# Modify composer.yml as needed. You may leave this for later.

# Create empty composer.json
touch composer.json

# Convert composer.yml to json format. Do this every time you modify your composer.yml
composer-yaml convert

# Update dependencies without running any scripts. This may take a while.
composer update --no-scripts

# In the following commands, replace "YourNamespace" with your default Namespace prefix you want to use for this project's bundles. Keep it short but helpful.
./bin/init-symfony run YourNamespace

# Now that the project structure is here it's time to run those fancy composer scripts
composer run-script post-update-cmd

# Init basic configuration
php app/console c33s:init-config YourNamespace

# Generate cms structure (webpage and admin bundles)
php app/console c33s:init-cms YourNamespace

# Optional: generate AdminGeneratorGenerator configuration that is automatically patched and correctly integrated into your project
php app/console admin:c33s:build YourNamespace

# This command will clear your cache and pre-render assets
php app/console c33s:clean

Make sure the web server permissions are set up correctly. This includes the path for media uploads as well as the sqlite database used by default. See http://symfony.com/doc/master/book/installation.html#configuration-and-setup for further information., (*5)

You should enable web server writing for the following folders:, (*6)

app/cache
app/logs
app/data
web/media

If this goes well, you should see some example pages as well as a secured admin login when accessing /admin/., (*7)

Features

Propel Model Traits

A helper Trait which can be used to extend your propel model classes, to easily load data from your fixtures for 1:n relations. The data can be directly defined in the fixture file for the object which the data is related to., (*8)

By extending your class like this:, (*9)

ACME/ModelBundle/YourPropelObject.php, (*10)

class YourPropelObject extends BaseYourPropelObject
{
    use \c33s\ModelBundle\Traits\PropelModelTraits;

    public function setYourDataFromArray($data)
    {
    $properties = array
    (
        'model' => 'ACME\\ModelBundle\\Model\\YourExtraModel',
    );

    return $this->setRelationFromDataArray($data, $properties);
    }

you can define fixtures like this:, (*11)

app/propel/fixtures/yourfixtures.yml, (*12)

ACME\ModelBundle\Model\YourPropelObject:
    YourPropelObject_1:
        # normal m:n relation fixtures
        object_has_groups:
            - Group_1
            - Group_2
        # load 
        your_data_from_array:
            - name: your data name1
              type:  type1
            - value: your data name2
              type:  type2

, (*13)

The Versions

08/09 2017

dev-master

9999999-dev https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

07/02 2016

v0.101.9

0.101.9.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

21/09 2015

dev-construction-kit

dev-construction-kit https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT

The Requires

 

The Development Requires

06/06 2015

dev-sf2.7tmp

dev-sf2.7tmp https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

10/11 2014

v0.101.8

0.101.8.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

03/11 2014

v0.101.7

0.101.7.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

20/10 2014

v0.101.6

0.101.6.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

11/10 2014

v0.101.5

0.101.5.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

06/10 2014

v0.101.4

0.101.4.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

03/10 2014

v0.101.3

0.101.3.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

30/09 2014

v0.101.2

0.101.2.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

25/09 2014

v0.101.1

0.101.1.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

22/09 2014

dev-psr-1

dev-psr-1 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

01/09 2014

v0.99.3

0.99.3.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

02/08 2014

v0.101.0

0.101.0.0 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires

18/07 2014

dev-bootstrap3

dev-bootstrap3 https://github.com/c33s/CoreBundle

everything to quickstart a webpage

  Sources   Download

MIT GPL-3.0

The Requires

 

The Development Requires