Dr. Frank Benford discovered that in many cases, the number 1 is the first digit about 30,1% of the time. For example, most numbers in a set (about 30,1%) will have a leading digit of 1. This is followed by about 17.6% starting with a number 2 and each subsequent numeral, 3 through 9, will be the leading digit with decreasing as seen in the image.

Testing Benford’s Law in Symfony Framework

In the traditional Symfony web application we want to find out how often “1” to be the first digit of the total line-numbers for each PHP file. We want to do same for each…


The API system has built-in content negotiation capabilities. By default, only the JSON-LD format is enabled. However, API Platform Core supports many more formats and can be extended.

Available formats are: JSON-LD, GraphQL, JSON, JSON:API, HAL, XML, YAML, CSV, HTML (API docs).

1. JSON-LD


curl wttr.in/Istanbul

In this article I want to share with you the commands I most commonly used when working with symfony projects.

  1. ls command used to list files and directories. This command display the contents of your current working directory as below.

The Internationalized Resource Identifier is defined similarly to a URI, but the character set is extended to the Universal Coded Character Set. URIs are the glue that binds the Web together. IRIs extend and strengthen the glue, by allowing people to identify Web resources in their own language.

While URIs are limited to a subset of the ASCII character set, IRIs may additionally contain most characters from the Universal Character Set (Unicode/ISO 10646)[4][5], including Chinese, Japanese, Korean, and Cyrillic characters.

In addition, many W3C specifications -such as XML, RDF, XHTML and SVG-needed a definitive reference for identifiers that support international…


“I’m convinced that about half of what separates the successful entrepreneurs from the non-successful ones is pure perseverance.” Steve Jobs

Perseverance tends to be associated with a steadfastness on mastering skills or completing a task; having a commitment to learning. It is the staying power to follow through and exert effort till the end to achieve your goals, dreams and vision.

Success often has much more to do with perseverance than it does with a person’s innate qualities. None of us get to where we are in life without some level of grit and perseverance. Success comes to those who…


In this article i will show cascade={"persist", "remove"} operations with examples. It is often used on mappedBy property side of the relationship. But can be use it both sides.

For example, assuming that there is class Cv(Curriculum Vitae) an entity and the OneToMany no cascade option as below;

You just need to call persist() on any new objects after form submitted in your controller as below;

But If you add cascade options to the OneToMany in Cv class;

cascade={"persist"} meaning that persisting entity Cv, doctrine will also persist all Reference and Certificate entities in the Collection as below;


Computer hardware circuits only have two electrical states, on or off. Everything you see, hear and read on the screen reaches you as the result of “on” or “off” billions of times. That’s exactly what your device does whenever you use the internet to watch movies, listen to music using binary code, using only the numbers 1 and 0. Binary is representing numbers, letters, commands, images and sounds.


In this article, we will see how to create excel file in Symfony 5 with PhpSpreadsheet library. We will try to the simplest way to write a spreadsheet.

PhpSpreadsheet is a library written in pure PHP. It is not only support excel file for reading and writing of data, but also read and write html file data and CSV file data.

Installation

Use composer to install PhpSpreadsheet into your project:

composer require phpoffice/phpspreadsheet

Let’s get data then accessing cells in a Spreadsheet and generating file should be pretty straightforward.

Create a controller as below;

Use the path() Twig function to…


If you are satisfied with your workplace and do not want to leave, this article for you.


API Platform’a Giriş: Hiper Ortam ve GraphQL API, Yönetici ve Progresif Web Uygulaması

API Platformu, herhangi bir framework veya dilde en gelişmiş API platformudur.

— Fabien Potencier (Symfony’nin kurucusu), SymfonyCon 2017

API Platformu, API odaklı projelere adanmış güçlü ama kullanımı kolay bir full stack framework’tür. Sektör lideri standartları (JSON-LD ve Hydra, GraphQL, OpenAPI …) destekleyen tam özellikli API’ler oluşturmak için bir PHP kütüphanesi içerir, bu API’ları bir çırpıda (admin, PWA ve mobil uygulama oluşturucu, hypermedia client…) ve anında bulutta geliştirmek ve deploy için güzel bir Docker ve Kubernetes entegrasyonu ile birlikte gönderilir.

Başlamanın en kolay ve güçlü yolu API Platformu dağıtımını indirmektir. API Platformu şunları içerir:

>sunucu tarafı bileşen, Symfony 4 mikroframework ve…

Yusuf Biberoğlu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store