# Getting Started
[](https://hex.pm/packages/neo_faker)
[](https://hex.pm/packages/neo_faker)
[](https://github.com/muzhawir/neo_faker/actions/workflows/build.yml)
NeoFaker is a fake data generator for Elixir tests and development environments.
## Requirements
- **Erlang**: `28.0` or newer
- **Elixir**: `1.18.4-otp-28` or newer
## Installation
Add NeoFaker to your `mix.exs` dependencies:
```elixir
def deps do
[
{:neo_faker, "~> 0.14.0", only: [:dev, :test]}
]
end
```
Then fetch the dependency:
```sh
mix deps.get
```
## Configuration
Set the default locale in `config/config.exs`:
```elixir
config :neo_faker, locale: :default
```
If the requested locale is unavailable, NeoFaker falls back to `:default` (generic English US data).
See the [supported locales](https://hexdocs.pm/neo_faker/locales.html) for a full list.
### Phoenix Projects
For [Phoenix](https://hexdocs.pm/phoenix) apps, set the locale in `config/dev.exs` or
`config/test.exs` instead. In `test/test_helper.exs`, add:
```elixir
ExUnit.start()
NeoFaker.start()
```
## Usage
```elixir
iex> NeoFaker.App.name()
"Neo Faker"
iex> NeoFaker.App.description()
"Fake data generator for Elixir tests and development environments."
iex> NeoFaker.App.description(locale: :id_id)
"Penghasil data palsu untuk pengujian dan lingkungan pengembangan Elixir."
```
For detailed documentation, see the [API Reference](https://hexdocs.pm/neo_faker/api-reference.html).
For a quick overview, see the [Cheat Sheet](https://hexdocs.pm/neo_faker/cheat.html).
## License
Licensed under the [MIT License](https://github.com/muzhawir/neo_faker/blob/main/LICENSE.md).