#Inspection Tools with homebrew-php#
##Prerequisites##
- Homebrew is installed
##Step 1: Installing homebrew-php##
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install PHP53
(or other version of your choice)
#Inspection Tools with homebrew-php#
##Prerequisites##
##Step 1: Installing homebrew-php##
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install PHP53
(or other version of your choice)addCart(product) { | |
this.cartService.addCart(); | |
} |
<?php | |
namespace App\Meetvote\PDF; | |
abstract class PDF | |
{ | |
protected $phpWord; | |
protected $docx_path; | |
protected $templateProcessor; | |
public function __construct($templateName) | |
{ | |
$this->templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor(resource_path('views/template-pdf/'.$templateName)); |
import { Injectable } from '@angular/core'; | |
import { environment } from '../../../environments/environment'; | |
import { HttpHeaders, HttpClient, HttpParams } from '@angular/common/http'; | |
import { Observable } from 'rxjs/Rx'; | |
import { Router } from '@angular/router'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/catch'; | |
import { JwtService } from './jwt.service'; |
import { Directive, ElementRef, HostListener, Input, Output, EventEmitter } from '@angular/core'; | |
import * as XLSX from 'xlsx' | |
@Directive({ | |
selector: '[appXlsx]' | |
}) | |
export class XLSXDirective { | |
@Output() onSuccess = new EventEmitter() | |
constructor(private el: ElementRef) { | |
} |