Mainland China Payment & KYC Tester

I recently finished wiring Alipay, WeChat Pay and a standard Chinese bank-card gateway into our staging store and I now need someone physically located in mainland China to confirm that everything behaves exactly as it should… (Budget: $10 – $15 USD, Jobs: eCommerce, Payment Gateway Integration, Payment Processing, PayPal API, PHP, Software Architecture, User Experience Research, Web Testing)

Read more here:: https://www.freelancer.com/projects/payment-processing/Mainland-China-Payment-KYC-Tester.html

      

Build Enterprise AI Management Platform

Enterprise AI-Powered Business Management Platform Estimated Project Budget: $1,000,000 USD We are looking for an experienced software development company or a highly qualified team of developers to design, develop, and launch a comprehensive AI-powered business management platform… (Budget: $15 – $25 USD, Jobs: AI App Development, AI Automation, AI Integration, AI Model Development, Cloud Computing, Full Stack Development, Graphic Design, HTML, PHP, Website Design)

Read more here:: https://www.freelancer.com/projects/cloud-computing/Build-Enterprise-Management-Platform.html

      

Service E-commerce Website Build

I need a clean, modern site where visitors can browse my range of services, add the one they want to the cart, and pay online in a single, friction-free flow—no date or time booking required. After checkout,… (Budget: ₹1500 – ₹12500 INR, Jobs: HTML, Payment Gateway Integration, PHP, SEO, Web Development, Website Design, WooCommerce, WordPress)

Read more here:: https://www.freelancer.com/projects/woocommerce/Service-commerce-Website-Build-40833167.html

      

Criclive.in Android App Development

Hello, I am looking for an experienced Android App Developer to develop an Android application for my website Criclive.in. I want the Android app to look and function similarly to my existing website (https://criclive.in), with a similar design, layout, features, and user experience… (Budget: ₹500000 – ₹1000000 INR, Jobs: Android, Android App Development, API Integration, Mobile App Development, PHP, UI / User Interface, UX / User Experience, Website Design)

Read more here:: https://www.freelancer.com/projects/android-app-development/Criclive-Android-App-Development.html

      

PlayStation Account Management System

I need a سيستم ادارة حسابات—an account-management tool dedicated to PlayStation profiles. The goal is to centralise every user’s PSN credentials, notes, and status in one secure, searchable place instead of juggling spreadsheets… (Budget: $250 – $750 USD, Jobs: API Development, Database Management, Laravel, MySQL, Node.js, NoSQL Couch & Mongo, PHP, Web Development)

Read more here:: https://www.freelancer.com/projects/laravel/PlayStation-Account-Management-System.html

      

Build Responsive 26-Page Business Website

Website Designer and Developer Needed for Business Website Project description Carib Jack Group is looking for an experienced web designer and developer to build a professional website based on our attached design concept… (Budget: $1500 – $3000 USD, Jobs: Content Management System (CMS), Graphic Design, HTML, JavaScript, PHP, Web Design, Web Development, Website Design)

Read more here:: https://www.freelancer.com/projects/web-design/Build-Responsive-Page-Business-Website.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; 
    }