Save this into .vscode
folder
{
"[php]": {
"editor.defaultFormatter": "wongjn.php-sniffer"
},
"phpSniffer.enable": true,
"phpSniffer.standard": "WordPress",
"phpSniffer.autoDetect": true,
interface PaymentGateway { | |
public function pay($amount); | |
} | |
require_once('vendor/autoload.php'); // Load PayPal PHP SDK | |
use PayPalCheckoutSdk\Core\PayPalHttpClient; | |
use PayPalCheckoutSdk\Core\SandboxEnvironment; | |
use PayPalCheckoutSdk\Orders\OrdersCreateRequest; |
<?php | |
interface DownloadInterface | |
{ | |
public function download(); | |
} | |
interface PrintInterface | |
{ | |
public function print(); |
Welcome to step by step hands-on guide to setup webpack in your upcoming typescript project. Please follow the steps and you should be able to create your own webpack project. Please download the source code from github.
You will learn below things:
webpack.config.js
file and modify webpack.config.js based on our need.theme: ThemeData(fontFamily: 'Raleway') |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: "Custom Fonts in Flutter", | |
debugShowCheckedModeBanner: false, |
Text( | |
"Hello World!", | |
style: TextStyle( | |
decoration: TextDecoration.none, | |
fontFamily: 'Roboto', | |
fontSize: 50, | |
), | |
), | |
Text( | |
"Hello World!", |
fonts: | |
- family: Raleway | |
fonts: | |
- asset: fonts/Raleway-Bold.ttf | |
weight: 700 | |
- asset: fonts/Raleway-Light.ttf | |
- family: Roboto | |
fonts: | |
- asset: fonts/Roboto-Bold.ttf | |
weight: 700 |
https://snippet-generator.app | |
https://curlconverter.com |
brew list | grep php | |
brew install php@5.6 | |
brew install php@7.0 | |
brew install php@7.1 | |
brew install php@7.2 | |
brew install php@7.3 | |
brew install php@7.4 | |
# Switch from 8.1 to 7.4 |