Skip to content

Instantly share code, notes, and snippets.

@parijke
parijke / Login.php
Created January 14, 2020 17:17 — forked from kunicmarko20/Login.php
Symfony OAuth with Leage OAuth2 library
<?php
declare(strict_types=1);
namespace App;
use Symfony\Component\HttpFoundation\Response;
use Twig\Environment;
use League\OAuth2\Client\Provider\Google as GoogleProvider;
@parijke
parijke / Currency.orm.xml
Last active February 1, 2021 09:42
MoneyPHP in Symfony
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
http://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<embeddable name="Money\Currency">
<field name="code" type="string" length="3">
<options>
<option name="fixed">true</option>
</options>
@parijke
parijke / enterpreneur-quotes.json
Last active August 11, 2021 11:15 — forked from b1nary/enterpreneur-quotes.json
325 Enterpreneur Quotes as JSON
[
{
"text":"The biggest room in the world is the room for improvement.",
"from":"Helmut Schmidt"
},
{
"text":"Text is written once but read many times so put effort into make it readable",
"from":"Paul Rijke, co-founder Espunda"
},
{