Skip to content

Commit

Permalink
Updated composer files
Browse files Browse the repository at this point in the history
Updated date
Updated readme
Fixed $faker->text()
  • Loading branch information
TS committed Apr 6, 2024
1 parent 68569d5 commit f4a24b1
Show file tree
Hide file tree
Showing 10 changed files with 358 additions and 428 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- uses: php-actions/phpunit@v3
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Tamas Schalk
Copyright (c) 2020-2024 Tamas Schalk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Random data generator for PHP

[![GitHub issues](https://img.shields.io/github/issues/schalkt/faker.svg?style=flat-square)](https://github.com/schalkt/faker/issues)
[![Build Status](https://travis-ci.org/schalkt/faker.svg?branch=main)](https://travis-ci.org/schalkt/faker)
[![Test](https://github.com/schalkt/faker/actions/workflows/ci.yml/badge.svg)](https://github.com/schalkt/faker/actions/workflows/ci.yml)

[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=schalkt_faker&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=schalkt_faker)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=schalkt_faker&metric=security_rating)](https://sonarcloud.io/dashboard?id=schalkt_faker)
Expand Down Expand Up @@ -49,7 +49,8 @@
$faker->mask('###-###-###-###', 'ABCDEFG'); // AAE-BAF-DDB-AAF
$faker->mask('##-##-##-##', '01'); // 11-10-01-10
$faker->pick(['CEO', 'CTO', 'Founder', 'Director'], 3, ', '); // Director, CEO, CTO
$faker->date('1970-01-01', '2010-12-31', 'Y-m'); // 2001-02
$faker->date(); // 2001-07-21
$faker->date('2024-01-01', '2024-12-31', 'Y.m.'); // 2024.02.

```

Expand All @@ -71,7 +72,7 @@
],
]);

$items[] = $faker->sentence(5); // Sedev emeze evekem ez denebebekepep.
$faker->sentence(5); // Sedev emeze evekem ez denebebekepep.

```

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
}
],
"require": {
"php": ">=7.4.0|8.*"
"php": "8.*"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^11.1"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit f4a24b1

Please sign in to comment.