Ranger

Stat requirements: 12 dexterity, 12 wisdom
Resonances allowed: any
Hitdice: d10
Saving throws: fort/reflex strong, will weak
Class Skills: athletics, endurance, stealth, survival
Class Feats: L1: light armor proficiency, simple weapon proficiency, martial weapon proficiency, shield proficiency, track, favored enemy
L3: rangers endurance, favored terrain
L4: animal companion
L7: hunters bond
L9: evasion
L10: quarry
L11: second favored enemy
L13: second favored terrain
L17: third favored enemy
L18: improved quarry
L19: third favored terrain
L21: seen it before
L31: wild hunter
Also:
one bonus melee feat at L21, and every five class levels thereafter

In addition to that, rangers use different pre-set combat styles they can choose with combatstyle command:

Dual wield combat style:L1: ambidexterity
L5: whirl
L9: two weapon fighting
L13: improved two weapon fighting
L17: unassailable parry
Archery combat style: L1: point blank shot
L5: manyshot
L9: deadeye
L13: preciseshot
L17: shot on the run
Twohanded combat style: L1: sweepingblow
L5: blade block
L9: impale
L13: light weapon
L17: strength of arm
Duelist combat style: L1: opportunity strikes
L5: swipe
L9: positioning
L13: opportunistic parry
L17: true strikes

The ranger is a hunter and woodsman who lives by not only his sword or bow but also his wits. Rangers, like nature itself, can be of any alignment. Their role and outlook changes depending on their alignment, but they all have a few things in common. They are more comfortable in the wilderness than in the city, and they have a strong affinity for nature that defines them. Their spells are drawn from being one with nature itself, and as such must protect and honor the wilderness. The one view all rangers have in common is that nature itself abhors the creation and existence of undead in any form. Undead are a direct threat to the natural world, and to the essence from which the ranger draws their power, and must be destroyed. Rangers can be of all resonances, but they would never ally with those who make use of the undead.

Rangers have the basic combat skills of a warrior, as well as several other abilities to aid their survival. They gain lesser divine spells based on their wisdom score. They prepare spells from the ranger spell list, which can be viewed with the spells ranger (by level) command. They cast the spell by expending a prepared spell from memory. To see which spells you have prepared, use recall ranger spells. To remove a spell from the list, use the forget command.

Rangers can cast in any armor they can wear, but not while wielding anything. They will need the perfect caster feat to avoid harming their allies, animal companion and summoned creatures with area-affecting spells.

Additional Roleplay considerations

Rangers of Light
Rangers with light in their hearts are the protectors of the woodlands. They seek to warn away those who would do harm to the forest and kill out of necessity rather than desire. They often choose a particular area as their own and defend it above all others. They act out of a desire to preserve the peace found in the wilderness, and as such, they are loathe to cause harm to one of nature's creatures except in defense of their own lives and even then do so with a sense of remorse. They harbor no such reservations against unnatural creatures such as undead or abominations.

Rangers of Twilight
Rangers that walk the path of twilight often follow a philosophy very similar to a druid's. They see a balance in nature that is missing from the rest of civilization, and they seek to preserve this balance. Neutral rangers often choose a particular wild place in the world, much like good rangers. They usually do not interfere with what happens there, though, and simply live in that place and learn its ways. These rangers see killing as part of nature's way, but they do not simply kill for killing's sake.

Rangers of Dark
Dark-hearted rangers are spoken of, but always in whispers kept well out of the hearing of other rangers. These are the rangers who have turned aside from the role of protector and become blood-thirsty hunters instead. These rangers follow many deities but always revere the darker side of nature that produces disease, pain, and death. Such a ranger will sometimes take a particular area for its own, but in the way that a predatory cat marks out its territory. Obviously, these rangers have no qualms about killing, maiming, or torturing much of anything. They will occasionally choose a particular creature they won't kill for various reasons, but more often than not, they choose a particular creature they kill at all costs.