Skip to content

Instantly share code, notes, and snippets.

View mmoreram's full-sized avatar
🤑
Working on Apisearch

Marc Morera mmoreram

🤑
Working on Apisearch
View GitHub Profile
<?php
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
<?php
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
@mmoreram
mmoreram / post
Last active August 29, 2015 14:18
Breves reflexiones de un pequeño emprendedor
---
layout: post
title: "Elcodi v1.0"
date: 2015-04-05 01:58
comments: true
categories:
- emprendedor
---
Ya hace un poco más de un año que estoy a bordo de este proyecto llamado Elcodi.
Para los que no conozcáis el proyecto, solo unas simples pistas...
# Component/Bundle
Este componente es parte del proyecto [Elcodi](http://github.com/elcodi/elcodi), un conjunto de Componentes y Bundles para Symfony enfocados a Ecommerce, con el único objetivo de proporcionar al desarrollador final una serie de herramientas útiles para la construcción de una tienda online.
## Overview
Este componente es para...
Podemos ver un ejemplo de uso en...
@mmoreram
mmoreram / gist:150d0806e4f8b3b5d8df
Created January 4, 2015 01:08
ExpressionLanguage
#
# Factory for Product entities
#
elcodi.core.product.factory.product:
class: %elcodi.core.product.factory.product.class%
parent: elcodi.core.currency.factory.abstract.purchasable
calls:
- [setEntityNamespace, ["%elcodi.core.product.entity.product.class%"]]
- [setUseStock, [@=service("elcodi.configuration_manager").getParameter('use_stock','product')]]
@mmoreram
mmoreram / post.md
Last active August 29, 2015 14:08
Dependency Injection and TDD

La mayoría de los proyectos ya existen. ¿Que quiero decir con esto? Bueno, creo que la mayoría de desarrolladores en la era de las grandes documentaciones simplemente abusan de la superficialidad que estas nos permiten. Y creo que esto puede estar bien en cierto modo, pero también creo que son las grandes implementaciones las que, en última instancia, nos hacen crecer como profesionales.

Es por esto que en la documentación del proyecto que quiero pseudodocumentar hoy empieza con una de las frases más conocidas por el homo-developer. "Oh, no way... another Dependency Injection container written in PHP?". Pues me temo

@mmoreram
mmoreram / fsi.sh
Last active January 4, 2016 09:19
FSI ( Fast Symfony2 Installation )
#!/bin/bash
# git clone https://gist.github.com/8601752.git fsi && sh fsi/fsi.sh
folder=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
clear
cd /tmp/
echo "Installing project in i/tmp/$folder. This process can take depending on your connection, up to 2 minutes"
git clone https://github.com/symfony/symfony-standard.git $folder
cd $folder
@mmoreram
mmoreram / parameters.yml
Created December 13, 2013 19:48
parameters.yml
parameters:
#
# Services
#
mmoreram.services.myservice.class: \Mmoreram\MyBundle\Services\MyService
@mmoreram
mmoreram / available-platforms.md
Last active December 24, 2015 14:29
Available Payfony platforms
@mmoreram
mmoreram / contribute-payfony.md
Last active December 24, 2015 14:29
Contributing in Payfony project

Contribute

All code is Symfony2 Code formatted, so every pull request must be validated with phpcs standards which you can install following these steps.

There is also a policy for contributing to this project. All pull request must be all explained step by step, to make for contributors more understandable and easier to merge the pull request. All new features must be tested with PHPUnit.

When contributing with Payfony, you can contact [email protected] to let us know about your contribution in this amazing project.

Contributors