Giter Site home page Giter Site logo

linechartimageanalyzer's Introduction

FOSSA Status

Vanilla PHP Project

This repository shows a basic setup for a PHP package or application in PHP.

Getting Started

PHP 7 or above and Composer is expected to be installed on our system.

Installing Composer

For instructions on how to install Composer visit getcomposer.org.

Installing

After cloning this repository, change into the newly created directory and run

composer install

or if you have installed Composer locally

php composer.phar install

This will install all dependencies needed for the project.

Running the Tests

All tests can be run by executing

vendor/bin/phpunit

phpunit will automatically find all tests inside the test directory and run them based on the configuration in the phpunit.xml file.

Testing Approach

The first test for the class Greeting verifies that the return value of the sayHello method contains the name of the person and also contains the initial greeting “Good”.

The second and third tests uses stubs to override the default behaviour of the DateTime class injected into the class' constructor so that we can test the expected return value depending on the time of day.

Running the Application

PHP has an in-built server for local development. To run this change into the directory public and run

php -S localhost:8000

Then open your browser at http://localhost:8000/example.php

You should see the text “Good Morning Ada Lovelace” being printed (or similar depending on the time of day).

Built With

License

This project is licensed under the MIT License - see the LICENCE.md file for details.

linechartimageanalyzer's People

Contributors

yuk1game avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.