Ejemplo n.º 1
0
 public function testShowingNameOfMonth()
 {
     $cal = new Calendar();
     $this->assertEquals("June", $cal->showMonth(6));
 }
Ejemplo n.º 2
0
<?php

require "vendor/autoload.php";
use Calendar\Calendar\Calendar;
$year = date('Y');
$firstDay = 1;
$months = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
if (isset($_GET['year']) and isset($_GET['day'])) {
    $year = $_GET['year'];
    $firstDay = $_GET['day'];
}
$calendar = new Calendar($year);
?>

<!DOCTYPE html>
<html>
<head>
	<title>PHP Calendar</title>

	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="col-lg-12">
				<div class="jumbotron text-center">
					<h1>Calendar</h1>
					<p>
						<strong>Solaiman Mansyur</strong><br/>
						solaiman.mansyur@gmailcom
					</p>