GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - VaclavSir/NBrowserKit-example: Usage example of NBrowserKit

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
bin
bin
 
 
log
log
 
 
temp
temp
 
 
tests
tests
 
 
vendor
vendor
 
 
www
www
 
 
.gitignore
.gitignore
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
readme.md
readme.md
 
 

Repository files navigation

NBrowserKit example

This is a demo of NBrowserKit, which is an integration of BrowserKit into Nette Framework.

This example is based on Nette Sandbox, a pre-packaged and pre-configured Nette Framework application that one can use as the skeleton for a new applications.

Look at the example test

It's located at tests/ExampleTest.phpt.

Installing

Install dependencies using Composer:

composer install

Initialize the database

By default, it connects to mysql://127.0.0.1/test. If you want a different host or database name, edit app/config/config.local.neon.

Create the users table in the database:

CREATE TABLE `users` (
	`id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
	`username` VARCHAR(255) NOT NULL,
	`password` VARCHAR(255) NOT NULL,
	`role` VARCHAR(255) NOT NULL,
	UNIQUE KEY `unq_username` (`username`)
) ENGINE = 'InnoDB', COLLATE 'utf8_czech_ci';
INSERT INTO `users` (`id`, `username`, `password`, `role`) VALUES
(1,	'foo',	'$2y$10$vGy6tDDa.CXNwtinrqzudubf0ZYmU6NWtjqFKMNZ7RLrgy045OF7G',	'');

Run Tests

vendor/bin/tester tests

License

  • NBrowserKit: MIT
  • NBrowserKit Example: WTFPL
  • Nette: New BSD License or GPL 2.0 or 3.0 (http://nette.org/license)
  • Adminer: Apache License 2.0 or GPL 2 (http://www.adminer.org)

About

Usage example of NBrowserKit

github.com/VaclavSir/NBrowserKit

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.