Skip to content

Instantly share code, notes, and snippets.

View taiebb's full-sized avatar

Taieb BACCOUCHE taiebb

  • Check24
  • Munich
View GitHub Profile
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
parameters:
level: 8
paths:
- src
excludes_analyse:
- ./src/Migrations
- ./src/Import/Config/Adapter/BackofficeMerchantDatabaseAdapter.php
symfony:
wget https://getcomposer.org/composer-2.phar
@taiebb
taiebb / MediaController.php
Created May 3, 2020 17:33
Symfony form + DropZonejs
<?php
namespace App\Controller\Admin;
use App\Entity\Media;
use App\Form\MediaType;
use App\Repository\MediaRepository;
use App\Service\FileUploader;
use phpDocumentor\Reflection\Types\This;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
@taiebb
taiebb / README.md
Last active January 27, 2019 13:48

docker-symfony

This is a complete stack for running Symfony 4 (latest version: Flex) into Docker containers using docker-compose tool.

Note: Docker must be already installed in your machine :)

Installation

  1. Clone this repository:
@taiebb
taiebb / HomeController.php
Last active August 30, 2018 09:58
comment enlever la duplication de la fonction readNotificationAction (elle est utilisée dans d'autres controleur)?
<?php
namespace AppBundle\Controller;
use AppBundle\Service\VisionCriticalApi;
use DateTime;
use EasyWordpressBundle\Annotation\TemplateName;
use EasyWordpressBundle\Controller\WordpressController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@taiebb
taiebb / index.html
Last active January 17, 2017 18:49 — forked from iriberri/index.html
Cluster two layers by category
<!DOCTYPE html>
<html>
<head>
<title>Leaflet multilayer example | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@taiebb
taiebb / dkan.aliases.drushrc.php
Last active October 21, 2016 11:42
Drush aliases
<?php
$aliases['stable'] = array(
'uri' => 'stable.dkan',
'root' => '/var/www/stable.dkan/docroot',
'db-url' => 'mysql://root:Sciawaker-n0wCit@localhost:3306/prod_dkan',
'remote-host' => '192.168.57.100',
'remote-user' => 'dkan',
'path-aliases' => array(
'%dump-dir' => '/home/dkan/db',
'%files' => 'sites/default/files'
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Validator\Constraints as Assert;
/**
var FormValidation = function () {
// basic validation
var handleValidation1 = function () {
// for more info visit the official plugin documentation:
// http://docs.jquery.com/Plugins/Validation
var form1 = $('#frm_createAccount');
form1.validate({
errorElement: 'span', //default input error message container
{
"company_registration":{
"email":"baccouch7.taieb@gmail.com",
"username":"jjjjjj",
"plainPassword":{
"first":"xxxxx",
"second":"xxxxx"
},
"companyUser": {
"firstName": "Taieb",