Skip to content

Instantly share code, notes, and snippets.

{
"info": {
"_postman_id": "42ea1923-5e5b-4f34-905c-2dbd4aeb8f87",
"name": "BPGCOM-EXT",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "post_user_api",
"request": {
# In all environments, the following files are loaded if they exist,
# the later taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.2.15",
"ext-ctype": "*",
"ext-iconv": "*",
"asprega/breadcrumb-bundle": "^0.2.0",
"doctrine/doctrine-fixtures-bundle": "^3.1",
"friendsofsymfony/jsrouting-bundle": "^2.3",
<?php
namespace App\Service;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\Validator\Constraints\Type;
class ContainerParametersHelper {
private $params;
<?php
/**
* Created by PhpStorm.
* User: mchehimi
* Date: 07/05/19
* Time: 17:02
*/
namespace App\Doctrine;
<script>
function arabicValue(txt, disabled) {
let yas = txt.value;
yas = yas.replace(/`/g, "ذ");
yas = yas.replace(/0/g, "۰");
yas = yas.replace(/1/g, "1");
yas = yas.replace(/2/g, "2");
yas = yas.replace(/3/g, "3");
yas = yas.replace(/4/g, "4");
yas = yas.replace(/5/g, "5");
<?php
namespace AppBundle\Service;
use AppBundle\AppBundle;
use AppBundle\Entity\User;
use Doctrine\ORM\EntityManager;
use Symfony\Component\HttpFoundation\Request;
class UserService
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.dropbtn {
background-color: #4CAF50;
color: white;
padding: 16px;
font-size: 16px;
<?php
/**
* Created by PhpStorm.
* User: mchehimi
* Date: 28/04/19
* Time: 03:29
*/
namespace App\Service;
#Autre exemple avec un tableau composé
$things = [
[
'foo' => 5.5,
'bar' => 'abc'
],
[
'foo' => 7.7,
'bar' => 'xyz'