Posts

Learn Symfony 4 from Free Learning Resources

Image
Symfony 4 released at Nov 2017, and now become one of the most popular PHP Frameworks after Laravel and CodeIgniter. But as you already know that Symfony has  a more steep learning curve compared to other PHP frameworks like Laravel, CodeIgniter, CakePHP, etc. In this post, I will share with you several good free learning resources you can use to start your journey of learning about how to create medium until enterprise level of PHP application (not only web but mostly web applications) using Symfony 4 Framework. 1. Stellar Development with Symfony 4 from SymfonyCast Symfony 4 is out! And it's the best Symfony ever! Faster! Re-imagined developer experience! And easier to create the feature you need! So let's start coding already! Setup your new (tiny) Symfony app PhpStorm set up for a killer experience Flex & understanding recipes Creating routes and controllers The bin/console tool Twig & templating Crazy-good debugging with the web debug tool...

API Platform Admin Installation

Image
Ikuti petunjuk yang diberikan disini: API Platform Admin +On Your API Platform Server App -Install nelmio/cors-bundle ╭─yoesoff@yoesoff-ThinkPad-X220 ~/Documents/Oproject/Oapi  ‹master*› ╰─➤  composer req cors -vim .env CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$ -vim  config/packages/nelmio_cors.yaml -Clear cache docker exec -it oapi_oapi_php_fpm_1  php bin/console cache:clear +Your ReactJS Admin App create-react-app Oadmin cd Oadmin yarn add @api-platform/admin +vim src/App.js  import React from 'react' ; import { HydraAdmin } from '@api-platform/admin' ; export default ( ) => < HydraAdmin entrypoint = " http://oapi.local:55/ " / > ; // Replace with your own API entrypoint +Installed

Membuat Login pada API Platform dengan Doctrine User Provider

Image
Symfony memiliki dukungan terhadap beberapa user providers secara default, seperti: Entity User Provider  (menggunakan users dari database); LDAP User Provider  (menggunakan users dari LDAP server); Memory User Provider  (menggunakan users dari configuration file); Chain User Provider  (menggabungkan dua atau lebih user providers menjadi sebuah user provider contoh disini ). Built-in user providers  telah mencakup hampir semua hal yang diperlukan oleh applikasi pada umumnya, tapi kita juga dapat membuat  custom user provider  sendiri. "Bila perlu catatan instalasi API-Platform maka ada dihalaman ini ." Menggunakan User dari Doctrine Entity Untuk API Login Symfony's security  dapat mengambil users dari mana saja - misalnya dari d atabase atau melalui Active Directory atau bahkan dari sebuah OAuth server . Pada catatan ini saya hanya akan membahas  bagaimana mengambil users dari database me...