Online Auto Auction -- 2

I want to create a web page to buy cars online from the auction (Copart, IAA, etc.) using my dealer license they can search it through car specifications, # of the lot, vin number. I want to implement… (Budget: $250 – $750 USD, Jobs: API Integration, Backend Development, Database Management, eCommerce, Frontend Development, HTML, PHP, Web Design, Web Development, Website Design)

Read more here:: https://www.freelancer.com/projects/web-development/Online-Auto-Auction-40679604.html

      

AI Sales System Architect Enagic Water

I’m ready to build a fully automated sales engine for my Enagic water business in Australia and need an architect who has already stitched AI, integrations and funnels together at scale. The immediate… (Budget: $250 – $750 AUD, Jobs: AI Automation, AI Chatbot, AI Integration, API Integration, Automation, Chatbot Development, HTML, PHP, UML Design, Website Design)

Read more here:: https://www.freelancer.com/projects/api-integration/Sales-System-Architect-Enagic-Water.html

      

WordPress Error Fix via AnyDesk

WordPress website not working. Need to fix, unable to provide the logins so please bid if you are able to fix using anydesk of teamviewer. Thanks (Budget: $10 – $30 AUD, Jobs: Database Management, Debugging, HTML, MySQL, PHP, phpMyAdmin, Web Development, WordPress, WordPress Design, WordPress Plugin)

Read more here:: https://www.freelancer.com/projects/database-management/WordPress-Error-Fix-via-AnyDesk.html

      

Migrate WordPress Backup tar file from linux hostng server to windows hosting server

I have a full tar archive of my WordPress site taken from a Linux host together with its .sql database dump. Your task is to unpack that backup, restore the files and database on my new Windows-based hosting plan, and make the site live without altering any content or design… (Budget: €8 – €30 EUR, Jobs: Database Management, HTML, IIS, Linux, MySQL, PHP, Plesk, Web Hosting, Windows Server, WordPress)

Read more here:: https://www.freelancer.com/projects/database-management/Migrate-WordPress-Backup-tar-file.html

      

Instalando Laravel Framework

laravelLaravel utiliza o composer para gerenciar suas dependências. Então, antes de usar o Laravel, você precisa ter o composer instalado em sua máquina. Caso não tenha veja como fazer a instalação neste post anterior: Instalando Composer

 

1. Baixe o instalador do laravel via composer

php composer.phar global require "laravel/installer=~1.1"

 

2. Criar projeto

php composer.phar create-project laravel/laravel phpConference 4.2 --prefer-dist

 

3. Configurar ambiente laravel

Nesses arquivos você poderá configurar a URL para os diferentes ambientes como também o local, timezone, chave para criptografia, entre outros.

Produção:

phpConference/app/config/app.php

Local:

phpConference/app/config/local/app.php

 

4. Permitir escrita ao servidor web para o seguinte diretório:

phpConference/app/storage

 

Requisitos:

PHP >= 5.4
Extensão PHP MCrypt
Modulo apache mod_rewrite

Referência: http://laravel.com/docs/4.2

Instalando Composer

composer
Composer: ferramenta para gerenciamento de dependências em PHP. Ele permite que você declare as bibliotecas dependentes que seu projeto precisa e vai instalá-los.

Pré-Requisito: versão minima do PHP 5.3.2.

Para instalar a última versão do composer digite a seguinte linha no terminal do Linux/Unix/OSX.

Instalação via cURL:

curl -sS https://getcomposer.org/installer | php

Ou instalação via PHP:

php -r "readfile('https://getcomposer.org/installer');" | php

 

Referencia: https://getcomposer.org/doc/00-intro.md

Instalando PHPUnit no Windows com XAMPP

Partindo do principio de que o XAMPP já está instalado e configurado abra o painel de controle do XAMPP (XAMPP Control Panel) e clique no botão Shell.

Painel de controle do XAMPP
Painel de controle do XAMPP

 

 

 

 

 

 

 

 

 

Quando abrir o terminal/prompt de comando digite os seguintes comandos:

pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
pear install phpunit/PHPUnit_SkeletonGenerator

Pronto ao final destes três comandos deverá retornar a mensagem: install ok

Para verificar se o PHPUnit está executando e qual a versão digite o comando abaixo:

phpunit --version

 

Agora você já pode começar a escrever seus testes.

Somar dias em uma data

/**
 * função pra somar dias em uma data
 * @param string $date formato YYYY-MM-DD
 * @param integer $dias quandidade de dias que deseja somar
 * @param string $tipo formato do retorno
 * @return string
 */
function SomaDiasData($date, $dias, $tipo) { 
	if ($date != '') {
		$sel_dia  = substr($date, 8, 2); # retorna dia
		$sel_mes  = substr($date, 5, 2); # retorna mes	
		$sel_ano  = substr($date, 0, 4); # retorna ano

		//$result	= $sel_dia."/".$sel_mes;
		$result	= date($tipo, mktime(12, 0, 0, $sel_mes, $sel_dia + $dias, $sel_ano));

	} else {
		$result = "";
	}
	return $result; 
    }